|
|
#1 |
|
Senior Member
Join Date: Oct 2007
Location: victoria, Australia
Posts: 179
Rep Power: 9 ![]() |
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? |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Mar 2006
Posts: 3,856
Rep Power: 94 ![]() ![]() |
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 |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Oct 2007
Location: victoria, Australia
Posts: 179
Rep Power: 9 ![]() |
Thanks Larry, it was the php.ini-max_upload_size....
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Oct 2007
Location: victoria, Australia
Posts: 179
Rep Power: 9 ![]() |
very handy info by the way
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |