compress and upload upyun success
This commit is contained in:
@@ -26,7 +26,11 @@ function upyun_upload.upload(filepath, filename)
|
||||
filename = strip_path.strip_path(filepath)
|
||||
end
|
||||
|
||||
ngx.log(ngx.INFO, 'bucket -> ', bucket)
|
||||
ngx.log(ngx.INFO, 'directory -> ', directory)
|
||||
|
||||
local savePath = bucket .. "/" .. directory .. "/" .. filename
|
||||
ngx.log(ngx.INFO, " savePath " , savePath)
|
||||
|
||||
local info, err = upyun:upload_file(savePath, nil, nil)
|
||||
if not info then
|
||||
|
||||
Reference in New Issue
Block a user