Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sipi): create tmp folder #1864

Merged
merged 9 commits into from May 30, 2021
10 changes: 3 additions & 7 deletions sipi/scripts/upload.lua
Expand Up @@ -52,13 +52,9 @@ end

-- Check that the temp folder is created
local tmpFolder = config.imgroot .. '/tmp/'
local exists
success, exists = server.fs.exists(tmpFolder)
if not success then
send_error(500, "server.fs.exists() failed: " .. exists)
return
end
if not exists then
local missing
success, missing = server.fs.exists(tmpFolder)
if missing then
local error_msg
success, error_msg = server.fs.mkdir(tmpFolder, 511)
if not success then
Expand Down