--- a/mod_http_upload/mod_http_upload.lua Thu Apr 13 20:59:55 2017 +0200
+++ b/mod_http_upload/mod_http_upload.lua Thu Apr 13 20:26:24 2017 +0200
@@ -152,6 +152,11 @@
filename = join_path(storage_path, random_dir, filename), size = filesize, time = os.time() });
local slot = random_dir.."/"..filename;
pending_slots[slot] = origin.full_jid;
+
+ module:add_timer(900, function()
+ pending_slots[slot] = nil;
+ end);
+
local base_url = module:http_url();
local slot_url = url.parse(base_url);
slot_url.path = url.parse_path(slot_url.path or "/");