diff 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
line wrap: on
line diff
--- a/mod_http_upload/mod_http_upload.lua	Sun Mar 26 23:07:16 2017 +0200
+++ b/mod_http_upload/mod_http_upload.lua	Sun Mar 26 23:08:14 2017 +0200
@@ -100,7 +100,7 @@
 	local random_dir;
 	repeat random_dir = uuid();
 	until lfs.mkdir(join_path(storage_path, random_dir))
-		or not lfs.attributes(join_path(storage_path, random_dir, filenams))
+		or not lfs.attributes(join_path(storage_path, random_dir, filename))
 
 	datamanager.list_append(origin.username, origin.host, module.name, {
 		filename = join_path(storage_path, random_dir, filename), size = filesize, time = os.time() });