473,386 Members | 1,668 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

File Upload Issue.

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
Feb 9 '06 #1
5 1144
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" <ka*****@modha.me.uk> wrote in message
news:eP**************@tk2msftngp13.phx.gbl...
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

Feb 9 '06 #2
Thus wrote Kalpesh,
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 ?


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
ne********@joergjooss.de
Feb 9 '06 #3
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" <ka*****@modha.me.uk> wrote in message
news:eP**************@tk2msftngp13.phx.gbl...
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

Feb 9 '06 #4
Is it possible to upload file but save to remote server?
"Joerg Jooss" <ne********@joergjooss.de> ¼¶¼g©ó¶l¥ó·s»D:94**************************@msnews .microsoft.com...
Thus wrote Kalpesh,
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 ?


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
ne********@joergjooss.de

Feb 10 '06 #5
Thanks everyone.
"Joerg Jooss" <ne********@joergjooss.de> wrote in message
news:94**************************@msnews.microsoft .com...
Thus wrote Kalpesh,
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 ?


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
ne********@joergjooss.de

Feb 10 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: CHIN | last post by:
Hi all.. here s my problem ( maybe some of you saw me on other groups, but i cant find the solution !! ) I have to upload a file to an external site, so, i made a .vbs file , that logins to...
14
by: Al Smith | last post by:
I need help in implementing proper error handling. I am trying to upload a file based on the sample code below. The code works well except if the file selected is too big. I do know about the...
4
by: Manu | last post by:
I want my user to upload a file to the site. Let us say a word file to be saved in the database for other users of the site to use. How can this be done? Is there a web control for that?
4
by: Matt Jensen | last post by:
Howdy I've got a rather strange issue occuring. I used forms based .NET authentication, although I'm also setting some session variables when people login. However, I've found when people use...
3
by: Mike Kelly | last post by:
Hi. I've built a page using standard ASP.NET 2.0 features and when I upload a large file (>20MB) to our intranet server, I get a paltry 100KB/s on our 100Mb/s LAN. Simply copying the file, I get...
8
by: mpar612 | last post by:
Hello, I am a newbie to PHP, MySQL. I am trying to create a basic file upload form. I want to get that working and then I want to integrate that into a form that will rename the file and save...
2
by: David | last post by:
I am attempting to upload files via. PHP 4.4.4. The '$_FILES' resolves to '/tmp/phpey9MpD', but when I go to the /tmp dir. I do not see any php* file. Could this be a issue with PHP or unix...
0
by: Tim Payne | last post by:
I have an odd permissions issue with uploading files to a windows 2003 server. I have a reasonably unusual setup. We have a php website, running through IIS that was written to use mod_rewrite....
4
by: henribaeyens | last post by:
Hello, I have this question that hopefully some of you guys can answer. So I use the usual mechanism: display form, enter data, browse for file, validate, upload if no errors. Well, something...
2
by: darrel | last post by:
I've written a file-upload application in VB.net. A web form with a FILE field that then uploads the file. Pretty simple. I'm getting a report from the customer that one particular user can't...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.