Increase Upload Image weight from 100 KB
The default value for image uploads is 100 KB (100000 bytes).
In version 2.62 or higher, you can change the upload limit by opening the open.php page in the /includes/ folder in the /storeadmin/ folder, and changing the line:
$MaxUploadKBytes = 100;
Updating the 100 to whatever KB limit you'd like.
As of version 2.55, there is not a variable to change the image upload limit. So if you'd like to change this, you'll need to:
-
In the /storeadmin/ folder, open the images.php page, and change the line:
if (($_FILES['addimg']['type'] != "image/gif" AND $_FILES['addimg']['type'] != "image/jpg" AND $_FILES['addimg']['type'] != "image/jpeg" AND $_FILES['addimg']['type'] != "image/pjpeg" AND $_FILES['addimg']['type'] != "image/png" AND $_FILES['addimg']['type'] != "image/x-png") OR $_FILES['addimg']['size'] > "100000") $uploadmsg = "The file $abs_img could not be uploaded. Please make sure that the file is an image and that it is under 100 KB in size.";
to:
if (($_FILES['addimg']['type'] != "image/gif" AND $_FILES['addimg']['type'] != "image/jpg" AND $_FILES['addimg']['type'] != "image/jpeg" AND $_FILES['addimg']['type'] != "image/pjpeg" AND $_FILES['addimg']['type'] != "image/png" AND $_FILES['addimg']['type'] != "image/x-png") OR $_FILES['addimg']['size'] > "200000") $uploadmsg = "The file $abs_img could not be uploaded. Please make sure that the file is an image and that it is under 200 KB in size.";
You can change the numbers to whatever value you want (make sure the first number is 1000 times the second though).
-
In the /popups/ folder inside the /htmlarea/ directory in the /storeadmin/ folder, open the insert_image.php page and find the line:
if ($_FILES['uplImage']['size'] > "100000")
and change it to:
if ($_FILES['uplImage']['size'] > "200000")
again changing the number value to whatever you want.
3. In the /includes/ folder inside the /storeadmin/ area, open the imgload.php page, and change the line:
if ($_FILES['fileone']['size'] > "100000")
to:
if ($_FILES['fileone']['size'] > "200000")
change the line:
echo "Files must be under 100 Kilobytes in size.";
to:
echo "Files must be under 200 Kilobytes in size.";
change the line:
if ($_FILES['filetwo']['size'] > "100000")
to:
if ($_FILES['filetwo']['size'] > "200000")
and change the line:
echo "Files must be under 100 Kilobytes in size.";
to:
echo "Files must be under 200 Kilobytes in size.";
again, changing the number values according to your preference.
Just save the files, and you'll now be able to upload larger images.