Diff

mod_http_upload/mod_http_upload.lua @ 1967:2ce2b194d501

mod_http_upload: Make file system path configurable
author Kim Alvefur <zash@zash.se>
date Fri, 11 Dec 2015 18:20:14 +0100
parent 1966:3b748666ff97
child 2053:40056a27f394
line wrap: on
line diff
--- a/mod_http_upload/mod_http_upload.lua	Fri Dec 11 18:00:43 2015 +0100
+++ b/mod_http_upload/mod_http_upload.lua	Fri Dec 11 18:20:14 2015 +0100
@@ -35,7 +35,7 @@
 -- state
 local pending_slots = module:shared("upload_slots");
 
-local storage_path = join_path(prosody.paths.data, module.name);
+local storage_path = module:get_option_string(module.name .. "_path", join_path(prosody.paths.data, module.name));
 lfs.mkdir(storage_path);
 
 -- hooks