Connecting Tech Pros Worldwide Forums | Help | Site Map

File Upload Issue.

Kalpesh Modha
Guest
 
Posts: n/a
#1: Feb 9 '06
Hello.

If I upload a 1MB file this works ok. However if I try to upload a 10MB
file, I get a IE page saying page can not be displayed. I am running IIS.

Is their a limit on a allowed file size ?

thanks
Kalpesh Modha



John Timney \( MVP \)
Guest
 
Posts: n/a
#2: Feb 9 '06

re: File Upload Issue.


By default, ASP.NET only allows file uploads up to 4096KBytes (4MB) in siz.
To upload larger files, you will need to change the maxRequestLength
parameter of the <httpRuntime> section found in the web.config file.

http://msdn.microsoft.com/library/de...imesection.asp

--
Regards

John Timney
Microsoft MVP

"Kalpesh Modha" <kalpesh@modha.me.uk> wrote in message
news:ePM51jcLGHA.2668@tk2msftngp13.phx.gbl...[color=blue]
> Hello.
>
> If I upload a 1MB file this works ok. However if I try to upload a 10MB
> file, I get a IE page saying page can not be displayed. I am running IIS.
>
> Is their a limit on a allowed file size ?
>
> thanks
> Kalpesh Modha
>[/color]


Joerg Jooss
Guest
 
Posts: n/a
#3: Feb 9 '06

re: File Upload Issue.


Thus wrote Kalpesh,
[color=blue]
> Hello.
>
> If I upload a 1MB file this works ok. However if I try to upload a
> 10MB file, I get a IE page saying page can not be displayed. I am
> running IIS.
>
> Is their a limit on a allowed file size ?[/color]

Yes, maxRequestLength is set to 4 MB in machine.config (.NET 1.x) or your
root web.config (.NET 2.0). You can override that value in your application's
web.config. See http://msdn2.microsoft.com/en-us/library/e1f13641.aspx for
details.

Cheers,
--
Joerg Jooss
news-reply@joergjooss.de


George Ter-Saakov
Guest
 
Posts: n/a
#4: Feb 9 '06

re: File Upload Issue.


Yes, you correct.
It's in machine.config file I believe ( default is set to 3 Mb)
You can look up the Microsoft KB article on how to increase it.

George

"Kalpesh Modha" <kalpesh@modha.me.uk> wrote in message
news:ePM51jcLGHA.2668@tk2msftngp13.phx.gbl...[color=blue]
> Hello.
>
> If I upload a 1MB file this works ok. However if I try to upload a 10MB
> file, I get a IE page saying page can not be displayed. I am running IIS.
>
> Is their a limit on a allowed file size ?
>
> thanks
> Kalpesh Modha
>[/color]


RedHair
Guest
 
Posts: n/a
#5: Feb 10 '06

re: File Upload Issue.


Is it possible to upload file but save to remote server?
"Joerg Jooss" <news-reply@joergjooss.de> ¼¶¼g©ó¶l¥ó·s»D:94fc50711301a8c7fbea7003d564@msnews .microsoft.com...[color=blue]
> Thus wrote Kalpesh,
>[color=green]
>> Hello.
>>
>> If I upload a 1MB file this works ok. However if I try to upload a
>> 10MB file, I get a IE page saying page can not be displayed. I am
>> running IIS.
>>
>> Is their a limit on a allowed file size ?[/color]
>
> Yes, maxRequestLength is set to 4 MB in machine.config (.NET 1.x) or your
> root web.config (.NET 2.0). You can override that value in your
> application's web.config. See
> http://msdn2.microsoft.com/en-us/library/e1f13641.aspx for details.
>
> Cheers,
> --
> Joerg Jooss
> news-reply@joergjooss.de
>
>[/color]


Kalpesh Modha
Guest
 
Posts: n/a
#6: Feb 10 '06

re: File Upload Issue.


Thanks everyone.


"Joerg Jooss" <news-reply@joergjooss.de> wrote in message
news:94fc50711301a8c7fbea7003d564@msnews.microsoft .com...[color=blue]
> Thus wrote Kalpesh,
>[color=green]
>> Hello.
>>
>> If I upload a 1MB file this works ok. However if I try to upload a
>> 10MB file, I get a IE page saying page can not be displayed. I am
>> running IIS.
>>
>> Is their a limit on a allowed file size ?[/color]
>
> Yes, maxRequestLength is set to 4 MB in machine.config (.NET 1.x) or your
> root web.config (.NET 2.0). You can override that value in your
> application's web.config. See
> http://msdn2.microsoft.com/en-us/library/e1f13641.aspx for details.
>
> Cheers,
> --
> Joerg Jooss
> news-reply@joergjooss.de
>
>[/color]


Closed Thread