add download image

This commit is contained in:
李勇
2021-08-08 18:50:54 +08:00
parent 7e45f455b2
commit fb80b74de3
2 changed files with 28 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
-- Get download image id
local download_image_id = string.match(ngx.var.request_uri, ".*/(.*)$")
ngx.log(ngx.INFO , "Download image id: " .. download_image_id)
-- Set redirect uri
local uri = "/internal_file_upload/" .. download_image_id .. ".jpg"
return ngx.exec(uri)