From 93b6ca18ad4bb8e46ab7dc29e9cda714688f6af6 Mon Sep 17 00:00:00 2001 From: Dany LE Date: Wed, 4 Jan 2023 21:45:43 +0100 Subject: [PATCH] VFS shall delete file after upload --- os/libs/vfs.lua | 1 + 1 file changed, 1 insertion(+) 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"