mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-12-25 00:48:22 +01:00
VFS shall delete file after upload
All checks were successful
gitea-sync/antd-web-apps/pipeline/head This commit looks good
All checks were successful
gitea-sync/antd-web-apps/pipeline/head This commit looks good
This commit is contained in:
parent
b10ecfc259
commit
93b6ca18ad
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user