compress and upload upyun success

This commit is contained in:
XiaoLi
2023-01-17 19:39:08 +08:00
committed by XiaoLi
parent a47be34b9c
commit 6f98a1d1a0
3 changed files with 15 additions and 1 deletions
+4
View File
@@ -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