update log

This commit is contained in:
2022-05-29 23:43:57 +08:00
parent 6be61efc6c
commit e1a050b9ae
+5 -3
View File
@@ -1,12 +1,14 @@
package.path = package.path .. ';<SCRIPT_PATH>/?.lua';
ngx.log(ngx.INFO, 'UPLOAD COMBINED IMAGE -> start')
local upyun_upload = require("upyun_upload")
ngx.log(ngx.INFO, 'UPLOAD COMBINED IMAGE -> upyun_upload -> ', upyun_upload)
local file_to_upload = string.match(ngx.var.request_uri, ".*/(.*)")
ngx.log(ngx.INFO, 'UPLOAD COMBINED IMAGE -> file to upload -> ', file_to_upload)
local file_dir = ngx.var.tmp_file_dir
local fullpath = file_dir .. "/" .. file_to_upload .. ".jpeg";
ngx.log(ngx.INFO, 'UPLOAD COMBINED IMAGE -> ', fullpath)
ngx.log(ngx.INFO, 'UPLOAD COMBINED IMAGE -> fullpath -> ', fullpath)
upyun_upload.upload(fullpath)