mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-19 18:08:21 +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 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"
|
||||
|
Loading…
Reference in New Issue
Block a user