diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-03-29 22:21:44 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-03-29 22:21:44 +0000 |
commit | 1f25e8176e5e025ca6a1adbefca1bf939e9f4760 (patch) | |
tree | a44eaf33cd039da32e1c7f2f1df80e3673a342e2 /actions | |
parent | 525a4f58f0a0e6dae8f7b26811cebf33a2ac0b89 (diff) | |
download | elgg-1f25e8176e5e025ca6a1adbefca1bf939e9f4760.tar.gz elgg-1f25e8176e5e025ca6a1adbefca1bf939e9f4760.tar.bz2 |
raised file limit for image resizing to 2.5 MB from .9 MB
Diffstat (limited to 'actions')
-rw-r--r-- | actions/upload.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/upload.php b/actions/upload.php index b506cde5b..ba9d005c8 100644 --- a/actions/upload.php +++ b/actions/upload.php @@ -58,8 +58,8 @@ array_push($uploaded_images, $file->guid);
// Generate thumbnail
- //TODO: REMOVE THE BELOW IF STATEMENT ONCE get_resized_image_from_existing_file() ACCEPTS IMAGES OVER 0.9MB IN SIZE
- if (filesize($file->getFilenameOnFilestore())<= 943718) { //create thumbnails if file size < 0.9MB
+ //TODO: This code needs a complete rewrite - hardcoded to ~2.5 MB
+ if (filesize($file->getFilenameOnFilestore())<= 2500000) {
try {
$thumblarge = get_resized_image_from_existing_file($file->getFilenameOnFilestore(),600,600, false);
} catch (Exception $e) { $thumblarge = false; }
|