Upload larger files

  • Thread starter Thread starter Mohan SRC via .NET 247
  • Start date Start date
M

Mohan SRC via .NET 247

Hi,
Can any one help me to solve this prblm.
When ever i upload files using default FILEBROWSER ctrl, small files
are uploaded w/o prbm. But larger files are not uploaded, instead the
"PAGE CANNOT BE FOUND" error is shown.
I used streams also, but experiencing same prbm.
plz. send a detailed reply.
 
hi Mohan,
you're probably getting IIS timeouts. your asp.net application also
has a maxRequestLength which limits the size of files that can be
uploaded. this setting is in the machine.config on the server, but you
can override it for your web application in your web.config. it's
syntax is as follows:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<httpRuntime executionTimeout="300" maxRequestLength="256000" /> <!--
256mb max size -->

i don't know about the filebrowser control, i couldn't find it in the
..net docs so it must be a 3rd party control. maybe there is some
configuration necessary for it.

hope this helps
tim
 
Back
Top