# HG changeset patch # User Kim Alvefur # Date 1485714447 -3600 # Node ID 1fae2a0a4092b04ec82ef0eff3a35aadb472e859 # Parent c32ca5ad253907feabb917e8c37688b018fb1761 mod_http_upload: Fix to include base storage path diff -r c32ca5ad2539 -r 1fae2a0a4092 mod_http_upload/mod_http_upload.lua --- a/mod_http_upload/mod_http_upload.lua Sun Jan 29 19:18:49 2017 +0100 +++ b/mod_http_upload/mod_http_upload.lua Sun Jan 29 19:27:27 2017 +0100 @@ -124,7 +124,7 @@ return 400; end pending_slots[path] = nil; - local full_filename = join_path(random, filename); + local full_filename = join_path(storage_path, random, filename); if lfs.attributes(full_filename) then module:log("warn", "File %s exists already, not replacing it", full_filename); return 409;