Support Forums

Old 02-02-2008, 02:42 AM   #1
Senior Member
 
Join Date: Oct 2007
Location: victoria, Australia
Posts: 179
Rep Power: 9
paulsra is on a distinguished road
Default image upload error

iv been trying to upload images from the admin console, and i get this error:

An error has occured saving uploaded file!

Filename: p1011570.jpg
File is not uploaded correctly or is empty.
Please correct and try again

the file type and size is correct.
any ideas?
paulsra is offline   Reply With Quote
Old 02-02-2008, 10:20 AM   #2
Moderator
 
 
Join Date: Mar 2006
Posts: 3,856
Rep Power: 94
Lhotch is just really niceLhotch is just really nice
Default

This could be due to one of a couple problems.

It could be the files is larger than your host permits based on the settings in php.ini (ie max_upload_size).

Or the problem is the file is too big and the script is running out of server memory to process the image.

When I say too big, here is what I mean. The PHP image processor functions require a certain amount of memory to process a compressed image file. For example a jpg image can have different amounts of compression. If you have an image thats 2500 x2500 pixels saves at highest jpg image quality setting little compression will be used and it will result in a file size that is MUCH larger than if the lowest compression setting is used.

Now, regardless of the compression setting used, and thus the actual compressed file size both the low compression AND high compression jpeg REQUIRE the same amount of system memory to process. This is because for the image file to be processed (ie thumbnail created and resized image created) the file needs to be uncompressed and when uncompressed, both the high compression and low compression files are the same pixel dimensions.

If you are in control of your own server you can adjust the php.ini setting memory_limit but keep in mind these may affect other scripts on the server if yours is hogging resources.

The best bet is to find an approximate max image dimension your server can handle based on your allotted memory and then modify the template where you upload images and explaine to users that they files must be no bigger than x by y in order to be initiallt uploaded.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 02-03-2008, 02:48 AM   #3
Senior Member
 
Join Date: Oct 2007
Location: victoria, Australia
Posts: 179
Rep Power: 9
paulsra is on a distinguished road
Default

Thanks Larry, it was the php.ini-max_upload_size....
paulsra is offline   Reply With Quote
Old 02-03-2008, 02:50 AM   #4
Senior Member
 
Join Date: Oct 2007
Location: victoria, Australia
Posts: 179
Rep Power: 9
paulsra is on a distinguished road
Default

very handy info by the way
paulsra is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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
Image upload blank screen problem (not file size related) larry1 v3.1 Questions & Support 1 10-12-2007 05:27 AM
Image upload PROBLEM! midoplaz v3.1 Questions & Support 6 07-30-2007 10:49 AM
Problem of importation (upload) of image on HTML editor jabs v3.1 Questions & Support 3 04-05-2007 08:43 AM
Image Browse error CHRD v3.1 Questions & Support 1 02-16-2007 03:28 PM
SQL Image Error djm v3.1 Questions & Support 2 10-23-2006 07:39 PM


All times are GMT -4. The time now is 03:05 AM.


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