diff --git a/os/libs/vfs.lua b/os/libs/vfs.lua index a57ab74..b1d9b85 100644 --- a/os/libs/vfs.lua +++ b/os/libs/vfs.lua @@ -153,6 +153,7 @@ vfs.upload = function(path) local ret = ulib.move(REQUEST["upload-"..index..".tmp"], file) if not ret then ret = ulib.send_file(REQUEST["upload-"..index..".tmp"], file) + ulib.delete(REQUEST["upload-"..index..".tmp"]) end if not ret then return false, "Unable to copy file"