mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-20 02:18:20 +01:00
code refactor
This commit is contained in:
parent
f10df26f82
commit
4016a0abef
@ -152,7 +152,7 @@ vfs.upload = function(path)
|
|||||||
local file = m.."/"..REQUEST["upload-"..index..".file"]
|
local file = m.."/"..REQUEST["upload-"..index..".file"]
|
||||||
local ret = ulib.move(REQUEST["upload-"..index..".tmp"], file)
|
local ret = ulib.move(REQUEST["upload-"..index..".tmp"], file)
|
||||||
if not ret then
|
if not ret then
|
||||||
local ret = ulib.send_file(REQUEST["upload-"..index..".tmp"], file)
|
ret = ulib.send_file(REQUEST["upload-"..index..".tmp"], file)
|
||||||
end
|
end
|
||||||
if not ret then
|
if not ret then
|
||||||
return false, "Unable to copy file"
|
return false, "Unable to copy file"
|
||||||
|
Loading…
Reference in New Issue
Block a user