View Single Post
Old May 18th, 2006, 03:18 PM   #13 (permalink)
snoopy5
Ultimate Member
Verified Customer
 
Join Date: Sep 2002
Posts: 1,172
Quote:
Originally Posted by Chuck S
too small?

I dont find anywhere in our program where we call a diewell that a graphic is to small what is the exact error?
As I mentioned above, it is HARDCODED in image-inc.php. Search for the word "graphic" and you will find at least 3 locations:

--------------
// Too big?
if ( $imagewidth > $maxwidth ) {
if ( $Globals['resizeorig'] == "yes" ) {
$resizeorig = 1;
}
else {
@unlink($realname);
diewell("Your graphic is too wide!<br /><br />Please upload a smaller one.");
}
}

if ( $imageheight > $maxheight ) {
if ( $Globals['resizeorig'] == "yes") {
$resizeorig = 1;
}
else {
@unlink($realname);
diewell("Your graphic is too tall!<br /><br />Please upload a smaller one.");
}
}

// Too small?
if ( ($Globals['minwidth'] > 0 && $imagewidth < $Globals['minwidth']) || ($Globals['minheight'] > 0 && $imageheight < $Globals['minheight']) ) {
@unlink($realname);
diewell("Your graphic is too small!<br /><br />Images must be at least {$Globals['minwidth']}x{$Globals['minheight']}.");
}


---------------


Quote:
Originally Posted by Chuck S
Second yes if your using bulkupload you are uploading more than one file because $uploadchk counts up 1 for each file it processes which is going to include all files uploaded so your not processing 1 but 2 files. This is what I have been saying your trying to upload multiple files and it will trip the trigger in bulkupload. It counts for each image uploaded and if your doing multiple files.

If you where uploading one file at a time in uploadphoto.php this logic is not present and you would only be dealing with one file. The query structure is sound in both files.

Your issue is your going to bulkupload to process multiple files and regardless if a file processes or not it is counted. as every image processed on bulkupload has a count.

Secondly, as I said, there is only ONE image the user tries to uplaod at a time. So this can not be a bulkupload issue. I just do not understand why you try to argue that it is not a mistake of the software. Did you even tried to repeat the same steps in my installation?

It does not matter what the code looks like. It matters what the result of the code is. It is not acceptable, that if a user tries to upload ONE image at a time, which is too small, fails, he logs out, logs in and tries again ONE image at a time, that now the system states that he uploaded already an image within the last 24 hours. This is simply not true!

There is no other image visible in the gallery of that user, he did not succeed to upload any image within these 24 hours, so the message of the system is wrong.

If you try to open a bottle of water, do not succeed to open it, throw it way, take another bottle and want to open it, then IT IS NOT correct, if the second bottle sais: "You have drunken already a bottle of water". It is just not true.

Sorry, but this is a bug or whatever you prefer to call it and it needs to be fixed!
snoopy5 is offline   Reply With Quote