Aurigma Forums
»
Legacy Products
»
Archive
»
Image Uploader
»
Image Uploader failing to create Thumbnails - PRODUCTION ISSUE
Rank: Member
Groups: Member
Joined: 5/8/2007(UTC) Posts: 16
|
We are having severe problems with Image Uploader. This was working fine until recently. We started noticing the problem only recebtly. I really appreciate your help.
When we ran a debug script the message from Image Uploader is (not much of help):
************************ Some server side error occurred. ************************
When we ran our own debug in the script it looks like it is failing at the point where Image Uploader is creating the thumbnail. Here are the detailed symptoms.
1. The source image is uploading without any problem. 2. Each time it is failing at the point where the Thumbnail1_ and Thumbnail2_ are getting created. 3. We tried saving the thinbnailes to several different folder structures and every time it is failing at the point of creation. 4. When we remove the thumbnail creation everything works fine. 5. On some machines the problem never occurs. 6. On some machines it happens intermittently. It works some times and does not work sometimes. 7. It never works on some machines. 8. It is giving problems on both IE 6 and 7 9. We haven't yet tested on Mozilla.
|
|
|
|
|
Rank: Advanced Member
Groups: Joined: 8/3/2003(UTC) Posts: 998
|
Hello Chow, Could you send the problem files and your source code for us to check them? If you have a direct link to your site please, send too. I would also like to know after what it stopped working. What did you do? May be you have made some changes to your site or something. Also try to set the ShowDebugWindow property value to true to see the error server page which could be very informative. Edited by user Sunday, February 24, 2008 5:11:10 PM(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Member
Groups: Member
Joined: 5/8/2007(UTC) Posts: 16
|
Alex, Thanks a lot for the response. I really appreciate your help. The link to our QA site is: http://www.prasaar.com/Test/TestUploadPhotos.aspxBasically it is failing at the third and fifth statement below. Code: sourceFile.SaveAs(Server.MapPath(galleryPath + fileName.Trim()));
HttpPostedFile thumbnail1File = Request.Files["Thumbnail1_" + i];
thumbnail1File.SaveAs(Server.MapPath(galleryPath + "Thumbnails/" + fileName.Replace(" ", "_")));
HttpPostedFile thumbnail2File = Request.Files["Thumbnail2_" + i];
thumbnail2File.SaveAs(Server.MapPath(galleryPath + "PhotoDisplay/" + fileName.Replace(" ", "_")));
Of the three variable above 'Thumbnail1_', 'galleryPath', and 'fileName' the last two are getting initialized and getting valid values as the firt sourcefile statement is successful and uploading photos to the server. It appears that the thumbnail is not getting initialized. So we cretaed an alert in our code at the point of creation of both the thumbnails. It is showing avery bizzar behaviour. Sometime it is showing 2 and sometime it is showing 0. Based on this I think the thumbnails are not getting iniatialized. Pleaase find the code below. Code: var iu = new ImageUploaderWriter("ImageUploader", 600, 600);
// If you do not want to use ActiveX or Java version, set the appropriate
// property to false.
iu.activeXControlEnabled = true;
iu.javaAppletEnabled = true;
iu.activeXControlCodeBase = "ImageUploader4.cab";
iu.javaAppletCodeBase="./";
//Configure thumbnail settings.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "120");
iu.addParam("UploadThumbnail1Height", "120");
iu.addParam("UploadThumbnail1JpegQuality", "80");
iu.addParam("UploadThumbnail2FitMode", "Fit");
iu.addParam("UploadThumbnail2Width", "600");
iu.addParam("UploadThumbnail2Height", "400");
iu.addParam("UploadThumbnail2JpegQuality", "80");
iu.addParam("ButtonDeselectAllText", "");
iu.addParam("ButtonSelectAllText", "");
iu.addParam("ButtonSendText", "Upload");
iu.addParam("DropFilesHereText", "Drop files here to Upload");
Edited by user Sunday, February 24, 2008 5:11:37 PM(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Member
Groups: Member
Joined: 5/8/2007(UTC) Posts: 16
|
By the way we did set the showdebugwindow property to true. It is giving the error "some server side error occurred". |
|
|
|
|
Rank: Advanced Member
Groups: Joined: 8/3/2003(UTC) Posts: 998
|
Hello Chow, I have checked your code and have some notes: 1) Line 353: I don’t see the method ImageUploader_UploadFileCountChange in your page code so you should comment this line or create such method if you need to use it. 2) Line 354: The same situation with ImageUploader_Progress method. 3) Line 362: Image Uploader uses the same event handler for inner purposes so try to comment this code and check if this is a reason of the problem. If you need this code to be processed use fullPageLoadListenerName property. Please, take these notes into account and check if the problem is still there. Edited by user Wednesday, October 29, 2008 12:13:55 PM(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Member
Groups: Member
Joined: 5/8/2007(UTC) Posts: 16
|
I did make the change but the problem still exists. I was able to upload the first time but it failed the next few times. |
|
|
|
|
Rank: Advanced Member
Groups: Joined: 8/3/2003(UTC) Posts: 998
|
That’s strange, I have successfully uploaded my files to your site several times on my IE6. Could you post problem photos here? |
|
|
|
|
Rank: Member
Groups: Member
Joined: 5/8/2007(UTC) Posts: 16
|
Alex,
I think I know why. We had a flash file on the right side of the screen. We disabled it just now and since then you are able to update it. Noth the IU and Flash use two different JS files and both of them are in the same /js folder. Is this causing the problems?
I went ahead and did the same on my web site. The problem seems to be gone; at least for now. We are testing thoroughly and will get back to you in a while.
Are you aware of any incompatibilities between Flash and Image Uploaders? |
|
|
|
|
Rank: Advanced Member
Groups: Joined: 8/3/2003(UTC) Posts: 998
|
No, there were no such issues before, but it’s always better to hold all Image Uploader event handlers in one file with Image Uploader itself. |
|
|
|
|
Rank: Member
Groups: Member
Joined: 5/8/2007(UTC) Posts: 16
|
Update:
Things are working fine now. We removed the Flash component from the page having the Image Uploader three days back. We haven't had any problems since then. I am not sure if there is any connection between Flash and Image Uploader but looks like there is some conflict or incompatibility between Image Uploader and Flash. |
|
|
|
|
Rank: Advanced Member
Groups: Joined: 8/3/2003(UTC) Posts: 998
|
Hello,
We did not hear about such problems before, but it is potentially possible that Flash player uses the same methods with Image Uploader itself. |
|
|
|
|
Aurigma Forums
»
Legacy Products
»
Archive
»
Image Uploader
»
Image Uploader failing to create Thumbnails - PRODUCTION ISSUE
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.