HttpHandlers and HttpModules
HttpHandler or HttpModule for file upload, large files, progress indi...
Re: Somebody must know the answer, please help: HttpHandler or HttpMo...
View Complete Thread
J B. Podolak
Re: Somebody must know the answer, please help: HttpHandler or HttpModule for file upload, large...
Nov 12, 2002 02:46 PM
J B. Podolak
To Marc Hoeppner: Yes, as I mentioned in my previous post, I am using the "second window" method to keep the upload alive (actually I use a modeless dialog box that contains aframeset that contains an aspx page that contains client script that refreshes every few seconds, but that's not my issue) My issue is that the post from the main page uses the <input type=file> control, so the *entire* file (or files) are sent in one big http request. While this works, the aspx page receiving this huge post (which can be hundreds of megabytes for my application) stores the *entire* request in server memory before I get a chance to begin handling it. Obviously, this will only marginally work with a single user, and if several users try to upload simultaneously, the server will run out of memory. What I need to do is intercept the request *AS IT COMES IN*, not after it is complete. That's why I was asking about asynchronous httprequest handlers. Do you (or anyone else reading this) have any experience with these? Can they be used to read an incoming request in chunks, so that the server doesn't have to buffer the *entire* posted file in memory? Any pointers greatly appreciated! J B. Podolak