Upload fails, redirects to empty page

This post has 9 replies

Not Ranked
Posts: 4
trufun101 Posted: Thu May 29, 2008 @ 9:18 AM
I'm having an issue with the Upload control. If I attempt to upload a file that is too big, it shows the appropriate client-side error and doesn't allow the user to upload; however, if I then select a valid file and click upload, the Progress Bar dialog pops up and the progress bar does not move.

A few seconds later, the page redirects back to itself with "?CartUploadId=" in the querystring, and the page is blank.

For my client-side UploadError method, I'm using the following:

function upload_error(sender, args)
{
    UploadDialog.close();
    alert("An error has occured during upload: " + args.get_message());    
}
Not Ranked
Posts: 4
trufun101 Posted: Mon Jun 2, 2008 @ 7:18 AM
In case anyone else is running into this issue. I was able to resolve this by forcing a page refresh after an error occurs, for example:

 
function upload_error(sender, args) 
{ 
     UploadDialog.close(); 
     alert("An error has occured during upload: " + args.get_message()); 

     //redirect back to current page
     window.location = "MyUploadPage.aspx";
} 
Top 150 Contributor
Posts: 37
Formula Posted: Fri Feb 20, 2009 @ 5:36 AM
Thanks for posting again with your solution - I will try this.

But this is not an ideal fix, can we expect a real solution?
Top 10 Contributor
Posts: 6,424
hwan Posted: Fri Feb 20, 2009 @ 1:20 PM
This is a known issue, D6005 "Unable to postback or upload after a failed Upload due to MaximumUploadSize".

Until this is fixed, another option might be to cancel (not saving) the Upload in the Uploaded server event instead of using the MaximumUploadSize property.
Top 500 Contributor
Posts: 18
darthdart Posted: Fri Nov 13, 2009 @ 12:11 AM
I'm experiencing an almost similar scenario. The only difference is that my file size is just small since it's just a word document that has 2 short paragraphs. When I run the webapp on my developer machine it doesn't happen but when I do deploy it on the server.. all files with special characters fail to upload and the page just hangs then turns all white, but it does okay with other documents
Not Ranked
Posts: 9
ronboylan Posted: Tue Jan 24, 2012 @ 8:48 AM
Has this issue D6005 been resolved?
Top 10 Contributor
Posts: 6,149
stephen Posted: Tue Jan 24, 2012 @ 10:59 AM

I'm afraid this is still open- I'm going to update the defect to reflect it's age  and up it's priority, and sorry for the trouble. 

Stephen Hatcher, Developer Support Manager
Not Ranked
Posts: 9
ronboylan Posted: Tue Jan 24, 2012 @ 11:05 AM
Is there something I can do via a callback when the user tries to upload a file that exceeds the

MaximumUploadSize? Right now I get a non-desript error that does not tell the user what to do.

Top 10 Contributor
Posts: 6,149
stephen Posted: Wed Jan 25, 2012 @ 7:32 AM

Not really- the callback won't have any details on the size of the file, since it's on the client machine... the 'workaround' above- giving the user information about the error and reloading the page (and ideally coupled with being clear to the user that there is a maximum file size set and not to exceed it) is likely the best option, at least at present. I'm sorry I couldn't be the bearer of better news. 

Stephen Hatcher, Developer Support Manager
Not Ranked
Posts: 1
Super Religare Posted: Wed Feb 15, 2012 @ 5:01 AM
Hi,

Was having tons of problem with the upload control, giving all kind of errors "Credentials Expired" and the same mentioned above redirecting to blank page with CartUploadId= in querystring.

The problem in my case was the "Web Garden" all the problems were resolved once i put the "maximum no of worker processes" =1

But this has to work on web garden as well any plans to support it in near future.

Me using Web.Ui.2009.3 planning to upgrade to 2012 soon.

Regards
Samir
Page 1 of 1 (10 items)