For those who can't use this technique because their hosting service is less than full trust (Reflection is not allowed), I wrote a tutorial on how to use flash to upload multiple files to a HttpHandler.
It is pretty simple. Something that TravisWhidden pointed out was that in the HttpPostedFile class definition
http://msdn2.microsoft.com/en-us/library/system.web.httppostedfile.aspx it says "By default, all requests, including form fields and uploaded files, larger than 256 KB are buffered to disk, rather than held in server memory." So the code basically just
shows how to use the flash and asp.net together to accomplish a nice uploader interface. Hope this is useful. And thanks for all the great contributions.
On a funny side, i've got it working (teste with file up to 2gig) with the normal file upload component in 2.0 by setting a few thing before uploading the file.
I need to upload large files like > 1 gb .I am new to ASP.NET. I want to use HttpModule with Chunk method . Any one please post the full source code or URL info.
darick_c
Member
22 Points
6 Posts
Re: HttpHandler or HttpModule for file upload, large files, progress indicator?
Sep 28, 2006 09:00 PM|LINK
For those who can't use this technique because their hosting service is less than full trust (Reflection is not allowed), I wrote a tutorial on how to use flash to upload multiple files to a HttpHandler.
http://www.codeproject.com/useritems/FlashUpload.asp
It is pretty simple. Something that TravisWhidden pointed out was that in the HttpPostedFile class definition http://msdn2.microsoft.com/en-us/library/system.web.httppostedfile.aspx it says "By default, all requests, including form fields and uploaded files, larger than 256 KB are buffered to disk, rather than held in server memory." So the code basically just shows how to use the flash and asp.net together to accomplish a nice uploader interface. Hope this is useful. And thanks for all the great contributions.
joytony
Member
166 Points
59 Posts
Re: HttpHandler or HttpModule for file upload, large files, progress indicator?
May 04, 2007 06:48 AM|LINK
Hi Guys,
Do you know any solution that can use FTP in ActiveX control & upload the file in ASP.NET?
Make easy things into perfect.
forward.mail...
Member
64 Points
17 Posts
Re: HttpHandler or HttpModule for file upload, large files, progress indicator?
May 08, 2007 09:07 AM|LINK
I have a page there i want to upload a csv file, and the content will be put into database.
now if that file is 10-20 MB+, it takes lots of time, plus some time request timeout occurs.
how to address this problem ?
DoriumDakre
Member
2 Points
1 Post
Re: HttpHandler or HttpModule for file upload, large files, progress indicator?
Aug 10, 2007 04:00 PM|LINK
On a funny side, i've got it working (teste with file up to 2gig) with the normal file upload component in 2.0 by setting a few thing before uploading the file.
for infos about these Property:
http://msdn2.microsoft.com/en-us/library/e1f13641.aspx
maxRequestLength="2000"
executionTimeout="90"
shutdownTimeout="90"
requestLengthDiskThreshold="256"
I simply modify them before uploading and change it back after.
It sure not as nice as other solutions and offer no progress bar but just wanted to share the easy fix.
Was hella nice to read all this topic too. Thx to all who shared.
SSNASP
Member
8 Points
32 Posts
Re: HttpHandler or HttpModule for file upload, large files, progress indicator?
Dec 04, 2008 01:13 PM|LINK
Hi,
I need to upload large files like > 1 gb .I am new to ASP.NET. I want to use HttpModule with Chunk method . Any one please post the full source code or URL info.
I am expecting your replay.
Regards
Ram
ASP.NET