From 1c7f68a09d236bba3fb5a933de4a3733c5dab116 Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Sun, 6 Jun 2021 00:15:33 -0700 Subject: [PATCH] Set the file cost value to the file size. --- exec/postfile.js | 1 + 1 file changed, 1 insertion(+) diff --git a/exec/postfile.js b/exec/postfile.js index fafed63132..bd5230fee4 100755 --- a/exec/postfile.js +++ b/exec/postfile.js @@ -48,6 +48,7 @@ while(!file.from && !js.terminated) { file.from = prompt("Uploader"); } +file.cost = file_size(dir.path + file.name); print("Adding " + file.name + " to " + filebase.file); if(filebase.add(file)) print(format("File (%s) added successfully to: ", file.name) + code); -- GitLab