.NETGURU
limitations on size of file posted to HtmlInputFile?
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngfw' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Kirk Marple (VIP)
using this control works fine for smaller files, but barfs with anything
large. i haven't pared it down to find the threshold where it succeeds or
fails, but i know it works for a file of around 2MB, but fails for a file of
around 10MB.

(i know HTTP POST isn't the optimal way for large file upload, but for our
needs right now it's what we can use.)

i've uploaded a 24MB file on x-drive.com using HTTP POST, so i'm pretty sure
it's not a limitation of the protocol.

thanks,
Kirk
Reply to this message...
 
    
Saurabh Nandu (VIP)
This is what Scott Guthrie had replied to a similar question on ASPLists
before ..

"A customer on the listserv had mentioned in Beta1 that hackers were
attempting denial of service attacks on his site by trying to
deliberately upload huge files (100s of Mb -- and then relying on user
code to incorrectly handle these large sizes). As such, for Beta2 we
added the ability to configure a maximum request size limit on file
uploaded content. By default it is 4 MB.

If you want to make it higher you can do some by editing either your
machine.config or your application's local web.config file and setting
the "maxRequestLength" attribute on the httpRuntime section handler (the
value is the number of KBytes to support -- so 8000 would be around Mb).

<configuration>

<system.web>

<httpRuntime maxRequestLength&#"8;000"/>

</system.web>

</configuration>

Hope this helps,

Scott

P.S. Note that it looks like there might have been a bug in Beta2 that
limited the max size of supported file uploads to something between
24-30 Mb (as such, if you are trying to upload a 100Mb file with Beta2
you might have problems). This was fixed for RTM."

Regards,
Saurabh Nandu
Technical Evangelist
YesSoftware India <http://www.yessoftware.com/>
Web Master: http://www.MasterCSharp.com <http://www.mastercsharp.com/>
Master C#, the easy way...

-----Original Message-----
From: Kirk Marple [mailto:Click here to reveal e-mail address]
Sent: Tuesday, August 14, 2001 7:21 AM
To: aspngfw
Subject: [aspngfw] limitations on size of file posted to HtmlInputFile?

using this control works fine for smaller files, but barfs with anything
large. i haven't pared it down to find the threshold where it succeeds
or fails, but i know it works for a file of around 2MB, but fails for a
file of around 10MB.

(i know HTTP POST isn't the optimal way for large file upload, but for
our needs right now it's what we can use.)

i've uploaded a 24MB file on x-drive.com using HTTP POST, so i'm pretty
sure it's not a limitation of the protocol.

thanks,
Kirk
| [aspngfw] member Click here to reveal e-mail address &# Y;OUR ID
| http://www.asplists.com/asplists/aspngfw.asp &# J;OIN/QUIT
| http://www.asplists.com/search &# S;EARCH Archives
Reply to this message...
 
 
System.Web.UI.HtmlControls.HtmlInputFile




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification