Software /
code /
prosody-modules
Diff
mod_http_upload/mod_http_upload.lua @ 2474:173fe999cc37
mod_http_upload: Use the correct variable name for directory
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 29 Jan 2017 18:10:06 +0100 |
parent | 2472:595d6a25bd7a |
child | 2475:54c42b097984 |
line wrap: on
line diff
--- 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;