# HG changeset patch # User Kim Alvefur # Date 1485709806 -3600 # Node ID 173fe999cc377703d617b2fe80caeeff5b321bbf # Parent fa8fe2ab332f2ad64201c4720fef07d73c378c78 mod_http_upload: Use the correct variable name for directory diff -r fa8fe2ab332f -r 173fe999cc37 mod_http_upload/mod_http_upload.lua --- a/mod_http_upload/mod_http_upload.lua Sun Jan 29 18:07:01 2017 +0100 +++ b/mod_http_upload/mod_http_upload.lua Sun Jan 29 18:10:06 2017 +0100 @@ -124,7 +124,7 @@ return 400; end pending_slots[path] = nil; - local full_filename = join_path(dirname, filename); + local full_filename = join_path(random, filename); if lfs.attributes(full_filename) then module:log("warn", "File %s exists already, not replacing it", full_filename); return 409;