Incorrect display after image processing
First, just a few words about my configuration. My host provider is 1and1 and, despite php_info() reports 40M for memory_limit, it is set to 32M and cannot be changed (cf 16.html and 1.html).
So I have to deal with these limitations and in order to prevent any memory overflow with single large image upload I successfully added a file size and dimensions test into the *single file upload* section of addimages.php file. Therefore big images are not processed and a specific error message is displayed. No change has been made to the server upload section code.
Well, when I try to process a directory which contains only such big images with the *server upload* method, I get this successful message :
"0 images were successfully uploaded! Manage your images........."
instead of the expected "ERROR: x images failed to upload. Tou may be able to fix this by reducing the dimensions............".
Let's see now what happens when the upload directory contains two kinds of files, let's say x "normal" files and y "huge" files:
1) if the huge files are the last processed, I only get a successful message indicating that x files have been processed.
2) if there is at least one "normal" file processed after the "huge" ones, I get the following two messages :
- x images were successfully uploaded!.....
- ERROR: y files failed to upload........
Puzzling, isn't it? How could this problem be fixed?