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

Notification

Icon
Error

Options
Go to last post Go to first unread
shelly_saunders  
#1 Posted : Monday, May 4, 2009 9:58:59 PM(UTC)
shelly_saunders

Rank: Newbie

Groups: Member
Joined: 2/18/2009(UTC)
Posts: 9

We use Image Uploader Dual 5.7 for all types of files however we have recently had problems with a handful of PDFs. This is occuring both with Firefox and IE. In each case the progress bar hangs after the first few kb and eventually a timeout occurs. No upload code is ever reached server-side. Using Firefox, the Java console reports very little:
###Error occured###
Status=[ERROR]
Progress=[0]
ValueMax=[0]
Value=[11]
[ErrorPage]

[EndOfErrorPage]

I have attached a sample PDF document that will not upload.
File Attachment(s):
2010 Landmark brochure.pdf (4,642kb) downloaded 4 time(s).
Tamila  
#2 Posted : Tuesday, May 5, 2009 5:42:50 PM(UTC)
Tamila

Rank: Advanced Member

Groups:
Joined: 3/9/2008(UTC)
Posts: 554

Was thanked: 1 time(s) in 1 post(s)
Hello Shelly,

Thank you for the file. I just tried to reproduce your problem locally but everything worked well. So, I think that you have some server side error. In this case I recommend you to remove all custom error pages if you have it. Also you need to use this property:
iu.addParam("ShowDebugWindow", "true");

Now you can try to upload this file once again and if the error occurs you will see the window with full description.
To get more information about debugging server scripts you ran read here:
Debugging Server Scripts

Try it and let me know about your results.
Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!
shelly_saunders  
#3 Posted : Tuesday, May 5, 2009 8:33:37 PM(UTC)
shelly_saunders

Rank: Newbie

Groups: Member
Joined: 2/18/2009(UTC)
Posts: 9

Thank you for taking the time to look at this. I don't believe it is a server-side problem as the debug window never opens. Also it happens on 2 development PCs as well as our server (in fact every box we have tried)

I believe it might have something to do with the file size possibly and the combination with Forms Authentication. Small pdfs work fine and are not a problem.

However for larger files as attached when I use IE I get the error message "Image Uploader encountered some problem. If you see this message contact web master". In Firefox I get "The server attempted to redirect you, but server redirects are not supported" - though there are no redirect attempts on the server and the same server code is working very well for small PDFs as well as any other file type we are using. It is just larger PDFs that fail.

The following thread has the same error message in the same circumstances as us, i.e. a site that uses ASP.NET Forms Authentication and has the same error when using bigger images:

http://forums.aurigma.co...s-are-not-supported.aspx

We have implemented all of the suggestions in the thread and related threads and as I have said, we can quite easily upload small PDFs with this code without any problem as well as images. It just fails as soon as the PDF gets larger.

Java Console output, large file (4.7Mb):

Cookies:[.AuthCookie=AA37E366C1F28A496F4135392A773C6B824ED99A3C0C0E095107492DFC9A534456BB42F6A6243CD597DE31C8E5C8C85C2045D1CC79BF8F3C6F296A56A5ADBB31CFEEB2077DE8EF12]
Setting HTTP params: Host=localhost
Starting upload
network: Connecting http://localhost:80/ with proxy=DIRECT
###Error occured###
Status=[ERROR]
Progress=[0]
ValueMax=[0]
Value=[11]
[ErrorPage]

Java Console ouput, small file (748kb) - immediately afterwards:

Uploading to http://localhost/cp4/Admin/ImageUpload.aspx?UploadType=5&MakeID=921
Cookies:[.AuthCookie=AA37E366C1F28A496F4135392A773C6B824ED99A3C0C0E095107492DFC9A534456BB42F6A6243CD597DE31C8E5C8C85C2045D1CC79BF8F3C6F296A56A5ADBB31CFEEB2077DE8EF12]
Setting HTTP params: Host=localhost
Starting upload
network: Connecting http://localhost:80/ with proxy=DIRECT
Status =[200]
Upload complete. Result page:

EndOf Result page


Script:

<script type=“text/javascript”>
function ImageUploader1_BeforeUpload() {
var iu = getImageUploader("ImageUploader1");
iu.AddCookie('<%=FormsAuthentication.FormsCookieName %>=<%= Request.Cookies[FormsAuthentication.FormsCookieName].Value %>');
}
//<![CDATA[
var iu = new ImageUploaderWriter(“ImageUploader1”, 650, 400);
iu.activeXControlCodeBase = “../ImageUploader/ImageUploader5.cab”;
iu.activeXControlVersion = “5.7.24.0”;
iu.javaAppletCodeBase = “../ImageUploader/”;
iu.javaAppletCached = true;
iu.javaAppletVersion = “5.7.24.0”;
iu.javaAppletJarFileName = “ImageUploader5.jar”;
iu.addParam(“LicenseKey”, “our key”);
if (navigator.appName == 'Netscape')
{
iu.addEventListener(“BeforeUpload”,“ImageUploader1_BeforeUpload”);
}
iu.showNonemptyResponse = “off”;
iu.addParam(“ShowDescriptions”, “false”);
iu.addParam(“AllowMultipleSelection”, “false”);
iu.addParam(“PaneLayout”, “TwoPanes”);
iu.addParam(“AllowRotate”, “false”);
iu.addParam(“UploadSourceFile”, “true”);
iu.addParam(“ShowDebugWindow”, “true”);
iu.addParam(“FileMask”, “*.pdf”);
iu.addParam(“FolderPaneSortMode”, “Name”);
iu.addParam(“Action”, “ImageUpload.aspx”)
iu.addParam(“RedirectUrl”, “Gallery.aspx”);
//Tell Image Uploader writer object to generate all necessary HTML code to embed
//Image Uploader to the page.
document.getElementById('pickerDiv').innerHTML = iu.getHtml();
//]]>
</script>


Tamila  
#4 Posted : Tuesday, May 5, 2009 8:50:53 PM(UTC)
Tamila

Rank: Advanced Member

Groups:
Joined: 3/9/2008(UTC)
Posts: 554

Was thanked: 1 time(s) in 1 post(s)
Shelly,

Quote:
We have implemented all of the suggestions in the thread and related threads and as I have said, we can quite easily upload small PDFs with this code without any problem as well as images. It just fails as soon as the PDF gets larger.

It seems that you have this problem because of incorrect server settings. Please make sure that you have pointed the correct length for post-request. For more information about it you can read here:
http://www.aurigma.com/docs/iu/ASPNETSamples.htm

I hope it helps you.
Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!
shelly_saunders  
#5 Posted : Wednesday, May 6, 2009 9:05:38 PM(UTC)
shelly_saunders

Rank: Newbie

Groups: Member
Joined: 2/18/2009(UTC)
Posts: 9

Thank you- that was it. So easy in the end!
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.