Software /
code /
prosody-modules
Changeset
2478:1fae2a0a4092
mod_http_upload: Fix to include base storage path
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 29 Jan 2017 19:27:27 +0100 |
parents | 2477:c32ca5ad2539 |
children | 2479:a440f0514c2a |
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 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;