complete download image (#15)

This commit is contained in:
XiaoLi
2021-09-06 19:33:30 +08:00
committed by GitHub
parent c7a35c4744
commit 49e4710203
3 changed files with 59 additions and 45 deletions
+7 -7
View File
@@ -1,7 +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)
---- 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)