Question About File Upload

J

Joey

I am using the HTML file upload control in my site. Everything works
great when I select any file type that is small in size. However, when
I select a larger file (i.e. 60MB), the upload times out? and fails,
and the page eventually reads "This page could not be displayed...".
This is all happening on the local development machine...(the
"PostedFile" is coming from the same machine). I want to make I can get
it working there before I deploy to the server.

What can I do to make it work with bigger files?
 
J

Joey

I found the source of the problem. It was being caused by a 4MB limit
that was planted by Microsoft to prevent DOS attacks. I put an
<httpRuntime maxRequestLength=[somenumber]> entry in my web.config file
to override it. Now all works great.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,431
Latest member
ElyseG3173

Latest Threads

Top