finish upyun upload issue
This commit is contained in:
@@ -97,7 +97,7 @@ end
|
||||
local function upload(filepath)
|
||||
local upyun, err = Upyun:new({
|
||||
user = ngx.var.upyun_operator,
|
||||
password = ngx.var.upyun_password,
|
||||
passwd = ngx.var.upyun_password,
|
||||
localFilePath = filepath
|
||||
})
|
||||
|
||||
@@ -116,7 +116,7 @@ local function upload(filepath)
|
||||
local info, err = upyun:upload_file(savePath, nil, nil)
|
||||
if not info then
|
||||
ngx.status = 502
|
||||
ngx.log(ngx.ERR, "failed to upload image file : " .. err)
|
||||
ngx.log(ngx.ERR, "failed to upload file : " .. err)
|
||||
return
|
||||
else
|
||||
ngx.status = 200
|
||||
|
||||
Reference in New Issue
Block a user