1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-12-25 17:08:22 +01:00

code refactor

This commit is contained in:
DanyLE 2022-08-23 01:20:05 +02:00
parent f10df26f82
commit 4016a0abef

View File

@ -152,7 +152,7 @@ vfs.upload = function(path)
local file = m.."/"..REQUEST["upload-"..index..".file"]
local ret = ulib.move(REQUEST["upload-"..index..".tmp"], file)
if not ret then
local ret = ulib.send_file(REQUEST["upload-"..index..".tmp"], file)
ret = ulib.send_file(REQUEST["upload-"..index..".tmp"], file)
end
if not ret then
return false, "Unable to copy file"