I'm adding to my How-Do-I Video Series with 4 new videos to help you with a variety of upload scenarios, from simple file uploads to AJAX-style to multiple files. !
Currently rated 3.1 by 26 people
Tags:
ASP.NET | Joe Stagner [Syndicated]
2/12/2008 9:24:28 AM
Hello Joe, I looked through the videos, file uploading topic is a pretty nasty one when it comes to ASP.NET and IIS. There are several issues that i faced when programming file uploads Uploading large files: With ASP.NET there are multiple issues when you're uploading large files - ASP.NET likes to cache whole request in memory as soon as you try to access request.params from within your code, and if a large file is uploaded, and you want to access more parameters of the post request (weird behaviour i've seen, maybe it's my design was flaky a little bit...) Also the AJAX-style example is a little bit misleading, because the progress bar will still show as `uploading`, even if the connection has been broken, and IE simply doesn't know about that yet. Users may be misled by the javascript showing that the progress bar is still going on. I would recon, that a "proper" file upload module should consists of a IIS module that intercepts all post to a specific webpage, and then handles the uploading routine (properly crunching MIME etc), putting file in place even before it gets to the ASP.NET application, and then changing the file contents in the request with some bogus text (to save memory for ASP.NET). ASP.NET won't have to deal at all with file upload. This IIS module can actually enrich a functionality of the application to modify the session variable as the upload progresses, so that upload progress can be displayed in a separate window for example. Would love to see IIS/ASP.NET handling file uploads better one day...
Andrew
2/12/2008 11:46:14 AM
Thank you Joe.
John J Ross
2/12/2008 6:13:16 PM
thanks joe.
krunal
2/13/2008 4:17:21 AM
Thanks Joe, i was looking for a solution that clever. It really helps the community.
Jorge Salinas
3/20/2008 9:40:57 PM
Very Good
khurram
4/30/2008 11:17:51 AM
Pingback from weblogs.asp.net Uploading Files: Multiple Files, Progress Bar, No Postback - Joshua Stengel
weblogs.asp.net
Powered by BlogEngine.NET 1.3.0.0 Theme by Mads Kristensen
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway. © Copyright 2008 Sign in