Software /
code /
prosody-modules
Changeset
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 |
parents | 2473:fa8fe2ab332f |
children | 2475:54c42b097984 |
files | mod_http_upload/mod_http_upload.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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;