diff options
Diffstat (limited to 'actions/upload.php')
-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
|