diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-08-22 16:01:24 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-08-22 16:01:24 +0000 |
commit | 478af07f910adae242f6ecbba094420627b1e4a0 (patch) | |
tree | 9c75a49d19008e96f50e09fcf510f689b29e8ff0 /actions | |
parent | f464b98a26cac9d2ec27b1f6ad249dc1074ff4fb (diff) | |
download | elgg-478af07f910adae242f6ecbba094420627b1e4a0.tar.gz elgg-478af07f910adae242f6ecbba094420627b1e4a0.tar.bz2 |
now handling max file size of less than 1 MB
Diffstat (limited to 'actions')
-rw-r--r-- | actions/upload.php | 2 |
1 files changed, 1 insertions, 1 deletions
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
|