From 478af07f910adae242f6ecbba094420627b1e4a0 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 22 Aug 2009 16:01:24 +0000 Subject: now handling max file size of less than 1 MB --- actions/upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actions') diff --git a/actions/upload.php b/actions/upload.php index f189e3777..70480a498 100644 --- a/actions/upload.php +++ b/actions/upload.php @@ -17,7 +17,7 @@ $album = get_entity($container_guid); - $maxfilesize = get_plugin_setting('maxfilesize','tidypics'); + $maxfilesize = (float) get_plugin_setting('maxfilesize','tidypics'); if (!$maxfilesize) $maxfilesize = 5; // default to 5 MB if not set $maxfilesize = 1024 * 1024 * $maxfilesize; // convert to bytes from MBs -- cgit v1.2.3