mirror of
https://github.com/lxsang/antd-web-apps
synced 2025-01-28 15:42:47 +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…
x
Reference in New Issue
Block a user