diff --git a/exec/postfile.js b/exec/postfile.js index fafed631327116fa4dabdea2bc5759acc9a4e41a..bd5230fee43a5c6ff206b88a2a4aef8994ea8638 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);