separate image combine logic
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package.path = package.path .. ';<SCRIPT_PATH>/?.lua';
|
||||
|
||||
local upyun_upload = require("upyun_upload")
|
||||
|
||||
local file_to_upload = string.match(ngx.var.request_uri, ".*/(.*)")
|
||||
local file_dir = ngx.var.tmp_file_dir
|
||||
local fullpath = file_dir .. "/" .. file_to_upload .. ".jpeg";
|
||||
|
||||
upyun_upload.upload(fullpath)
|
||||
Reference in New Issue
Block a user