diff options
author | jhilden <jakobhilden@gmail.com> | 2009-06-04 18:29:31 -0400 |
---|---|---|
committer | jhilden <jakobhilden@gmail.com> | 2009-06-04 18:29:31 -0400 |
commit | 9306c178a86c9a29402b34c9939ddf4969e0d022 (patch) | |
tree | d6c5aecd4e34ad8379be894f549834cc7404551f | |
parent | 743b321154b326094cc5fb805268c83906c246bd (diff) |
set filesize limit of swfupload to the same value as upload_max_filesize
* now users get an error when they try to upload too big files
* this should fix bug #337
* maybe it also needs to check for max_post_size
-rw-r--r-- | modules/gallery/views/simple_uploader.html.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/views/simple_uploader.html.php b/modules/gallery/views/simple_uploader.html.php index 7b90c5be..6b097108 100644 --- a/modules/gallery/views/simple_uploader.html.php +++ b/modules/gallery/views/simple_uploader.html.php @@ -80,7 +80,7 @@ "user_agent": "<?= Input::instance()->server("HTTP_USER_AGENT") ?>", "csrf": "<?= $csrf ?>" }, - file_size_limit : "100 MB", + file_size_limit : "<?= (!ini_get('upload_max_filesize')=="" ? ini_get('upload_max_filesize') : "100M") ?>", file_types : "*.gif;*.jpg;*.jpeg;*.png;*.flv;*.mp4;*.GIF;*.JPG;*.JPEG;*.PNG;*.FLV;*.MP4", file_types_description : "<?= t("Photos and Movies") ?>", file_upload_limit : 1000, |