PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds Bug Reports

Classifieds Bug Reports Post any problems you may be having with Classifieds here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old April 8th, 2005, 01:20 PM   #1 (permalink)
Registered User
 
Join Date: Mar 2005
Posts: 25
Image upload error if file too large

I am getting this error when a large image is uploaded:

Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 2304 bytes) in /xxxxx/xxxx/xxxxxx/xxxxxxx/classifieds/image-inc.php on line 104

I would of expected a message saying that the file was too large to upload and make it smaller and try again?
pilot is offline   Reply With Quote
Old April 8th, 2005, 01:23 PM   #2 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,834
Unfortunately, PHP doesn't work that way. You need to allocate enough memory to your scripts in the PHP.INI script so that these kinds of things don't happen. There isn't a way to "prequalify" a file before it is sent to the server for processing to catch something like this before it happens.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old April 8th, 2005, 01:34 PM   #3 (permalink)
Registered User
 
Join Date: Mar 2005
Posts: 25
Hi Michael

Thanks for the lightening quick reply!

I am on a shared server so I do not have access to the php.ini script, and I have already had server admin increase allocated memory to 20mb to php.

Seems I will have to block picture uploads in case people upload a picture straight from their digital camera without loosing file size. Can I block picture uploads in classifieds?
pilot is offline   Reply With Quote
Old April 8th, 2005, 04:16 PM   #4 (permalink)
Registered User
 
Join Date: Mar 2005
Posts: 25
I have asked my server admin about this problem and they pointed me here:

http://uk2.php.net/features.file-upload

"upload_max_filesize integer

The maximum size of an uploaded file.

they suggest "If you are using PHP you can limit the file upload"

could this help?
pilot is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Your image is too large Parax Installs and Upgrade - vBulletin 3.0.X 6 July 14th, 2005 04:06 AM
No Error on image upload - too large sbb Photopost Pro Installation & Upgrades 16 June 18th, 2005 07:37 AM
Upload large images - Error message not working. h2ojunkie Classifieds Installation & Upgrades 2 March 1st, 2005 03:03 AM
Large file upload tips on windows? anyone have any tips? vwsport.com Photopost Pro Installation & Upgrades 1 February 26th, 2005 06:27 PM


All times are GMT -5. The time now is 02:36 AM.

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