comparison mod_http_upload/mod_http_upload.lua @ 2650:fef067b57305

mod_http_upload: Fix typo in variable name
author Kim Alvefur <zash@zash.se>
date Sun, 26 Mar 2017 23:08:14 +0200
parents abea818eed7b
children 2b741e68433b
comparison
equal deleted inserted replaced
2649:abea818eed7b 2650:fef067b57305
98 reply:tag("slot", { xmlns = xmlns }); 98 reply:tag("slot", { xmlns = xmlns });
99 99
100 local random_dir; 100 local random_dir;
101 repeat random_dir = uuid(); 101 repeat random_dir = uuid();
102 until lfs.mkdir(join_path(storage_path, random_dir)) 102 until lfs.mkdir(join_path(storage_path, random_dir))
103 or not lfs.attributes(join_path(storage_path, random_dir, filenams)) 103 or not lfs.attributes(join_path(storage_path, random_dir, filename))
104 104
105 datamanager.list_append(origin.username, origin.host, module.name, { 105 datamanager.list_append(origin.username, origin.host, module.name, {
106 filename = join_path(storage_path, random_dir, filename), size = filesize, time = os.time() }); 106 filename = join_path(storage_path, random_dir, filename), size = filesize, time = os.time() });
107 local slot = random_dir.."/"..filename; 107 local slot = random_dir.."/"..filename;
108 pending_slots[slot] = origin.full_jid; 108 pending_slots[slot] = origin.full_jid;