fix uuid calling

This commit is contained in:
2023-11-06 02:03:54 +08:00
parent 620e535114
commit 0b4cc166e0
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ local function read_form_file()
local val = res[2]
if key == "Content-Type" then
local ext = ngx.re.match(val, [[(\w+)\/(\w+)]], "jo")[2]
file_name = uuid() .. "." .. ext
file_name = uuid.uuid() .. "." .. ext
end
if file_name then