Hello,
we have the same problem with imageuploader.
In some cases just thumbnails (size about 100px)
or even icons are uploaded instead of the thumbnail
we have defined in the html-source.
We don't believe, that the reason for this situtaion
are the sourcefiles, because in series of fotos taken
with the same digicam these small thumbnails appears
sporadic. But sometimes this appears in a sequence,
so that every 2nd or 3rd image is just such a little
thumbnail.
All images should have a max. width and height from 2000px.
This ist what we use in the html-source:
Code:iu.addParam("UploadSourceFile", "false");
iu.addParam("UploadThumbnail1FitMode", "2");
iu.addParam("UploadThumbnail1Width", "2000");
iu.addParam("UploadThumbnail1Height", "2000");
iu.addParam("UploadThumbnail1JpegQuality", "75");
To avoid this small thumbnails we thought about to
check the filesize. If the size of a file is less then
e.g. 5kb, the php-script send a header("HTTP/1.0 400 Bad Request");,
so that imageuploader uploads the file again.
But in the worst case the image is uploaded an uploaded
like in an infinite loop.
What do you think about this solution?
Maybe you have some other ideas to avoid.
Thank you and kind regards
P.S.: We use iu version 4.0.27 (activex) and 2.0.50 (java)
and this appears in both versions.
Edited by user Tuesday, February 19, 2008 2:13:52 PM(UTC)
| Reason: Not specified