Skip to content
Snippets Groups Projects
Commit 1c7f68a0 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Set the file cost value to the file size.

parent 1e441eda
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2352 failed
...@@ -48,6 +48,7 @@ while(!file.from && !js.terminated) { ...@@ -48,6 +48,7 @@ while(!file.from && !js.terminated) {
file.from = prompt("Uploader"); file.from = prompt("Uploader");
} }
file.cost = file_size(dir.path + file.name);
print("Adding " + file.name + " to " + filebase.file); print("Adding " + file.name + " to " + filebase.file);
if(filebase.add(file)) if(filebase.add(file))
print(format("File (%s) added successfully to: ", file.name) + code); print(format("File (%s) added successfully to: ", file.name) + code);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment