Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
chow  
#1 Posted : Tuesday, September 4, 2007 6:53:48 PM(UTC)
chow

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.

Chow
Alex Makhov  
#2 Posted : Wednesday, September 5, 2007 4:55:11 PM(UTC)
Alex Makhov

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

Sincerely yours,

Alex Makhov

UserPostedImage Follow Aurigma on Twitter!

chow  
#3 Posted : Wednesday, September 5, 2007 5:20:52 PM(UTC)
chow

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.aspx

Basically 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

Chow
chow  
#4 Posted : Wednesday, September 5, 2007 5:22:45 PM(UTC)
chow

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".
Chow
Alex Makhov  
#5 Posted : Wednesday, September 5, 2007 5:40:51 PM(UTC)
Alex Makhov

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

Sincerely yours,

Alex Makhov

UserPostedImage Follow Aurigma on Twitter!

chow  
#6 Posted : Wednesday, September 5, 2007 6:12:29 PM(UTC)
chow

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.
Chow
Alex Makhov  
#7 Posted : Wednesday, September 5, 2007 6:40:55 PM(UTC)
Alex Makhov

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?

Sincerely yours,

Alex Makhov

UserPostedImage Follow Aurigma on Twitter!

chow  
#8 Posted : Wednesday, September 5, 2007 6:55:00 PM(UTC)
chow

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?

Chow
Alex Makhov  
#9 Posted : Wednesday, September 5, 2007 7:32:36 PM(UTC)
Alex Makhov

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.
Sincerely yours,

Alex Makhov

UserPostedImage Follow Aurigma on Twitter!

chow  
#10 Posted : Sunday, September 9, 2007 5:53:37 PM(UTC)
chow

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.

Chow
Alex Makhov  
#11 Posted : Monday, September 10, 2007 1:08:44 PM(UTC)
Alex Makhov

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.

Sincerely yours,

Alex Makhov

UserPostedImage Follow Aurigma on Twitter!

Users browsing this topic
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.