Support Forums

Image setting and uploading

This is a discussion on Image setting and uploading within the Technical Support forums, part of the Technical Support Forums category; Hello, At the image setting, I set the following : The maximum kbytes the uploaded can be. - 80000 The ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 06-01-2008, 02:40 AM   #1
Junior Member
 
Join Date: May 2008
Posts: 5
Rep Power: 0
Sharon is on a distinguished road
Default Image setting and uploading

Hello,

At the image setting, I set the following :

The maximum kbytes the uploaded can be. - 80000
The Max Image Width for uploaded image - 10000
The Max Image Height for uploaded image - 10000


However when I tried to upload a 7mb photo, it tries to upload. After waiting for a while, a blank page appears. It doesn't proceed to the next step.

What has gone wrong?

Thank you.
__________________
...
Sharon is offline  
Old 06-01-2008, 06:16 AM   #2
Jon
Junior Member
 
Join Date: May 2008
Posts: 23
Rep Power: 7
Jon is on a distinguished road
Default

Hi Sharon

Sometimes your server can limit the maximum upload size, irrespective of the options set in administration. You can verify the maximum size by calling the phpinfo function from a php page hosted on your server, here is the syntax:

Code:
<?php
	phpinfo();
?>
Don't have this up too long as this contains some sensitive information, perhaps call it from a ghost page (a page not tied to your navigation, for example).

Hope this helps
__________________
Version 4.0.9 Developer
Jon is offline  
Old 06-01-2008, 06:18 AM   #3
Jon
Junior Member
 
Join Date: May 2008
Posts: 23
Rep Power: 7
Jon is on a distinguished road
Default

Update - if it is set below the 7MB you need, then you'll have to ask your hosting provider to increase the cap for you (assuming you don't have full control). BTW 7MB is quite some size!
__________________
Version 4.0.9 Developer
Jon is offline  
Old 06-02-2008, 09:33 AM   #4
Coder
 
Join Date: Mar 2006
Posts: 4,709
Rep Power: 115
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by Sharon
Hello,

At the image setting, I set the following :

The maximum kbytes the uploaded can be. - 80000
The Max Image Width for uploaded image - 10000
The Max Image Height for uploaded image - 10000


However when I tried to upload a 7mb photo, it tries to upload. After waiting for a while, a blank page appears. It doesn't proceed to the next step.

What has gone wrong?

Thank you.
If you are getting a blank page then your script has used up all the memory that php.ini is set to allow your script to use.

The thing to consider with jpg image files is that they are compressed and during the image upload process images a thumbnail is made from the image and the image size is checked and resized if needed. To do this the image file needs to be uncompressed. A typical 7mg jpg images saved at %90 quality will be about 25mg when uncompressed. So, while a 7mg file passes PHP's setting of file size upload it will often exceed the php.ini setting of "memory_limit" for the script.
__________________
Larry
Lhotch is offline  
Old 06-02-2008, 10:20 PM   #5
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,726
Rep Power: 50
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Quote:
Originally Posted by Sharon
Hello,

At the image setting, I set the following :

The maximum kbytes the uploaded can be. - 80000
The Max Image Width for uploaded image - 10000
The Max Image Height for uploaded image - 10000
80,000 kbytes is about 78MB.
10,000 X 10,000 pixels is almost ten times the size that a typical 17" monitor could show. Why would you want to allow such huge picture parameters?
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified)
Sandbox (v3.1.10, v4.0.9, 4.1.5)
Visit My blog for tips, tricks, tutorials, reviews for 68 Classifieds as well as my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Email are not going out vega6143 v3.1 Questions & Support 10 12-27-2007 05:25 PM
Image upload blank screen problem (not file size related) larry1 v3.1 Questions & Support 1 10-12-2007 05:27 AM


All times are GMT -4. The time now is 06:33 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0