473,492 Members | 4,279 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

file upload question

I am using a <INPUT> File html control to upload fiels to our server. it
basically works fine until you get a large file > 5 MEGS. Does anybody know
how to get around this limitation? or a better way to accomplish the same
thing?
thanks Phil.
Nov 17 '05 #1
4 3387
This is probably due to the server that you're uploading to having a maximum
request size limit. A POST is a request that just does a lot of explaining.

If you have access to the server as an administrator you can increase this
size with the MAXREQUESTSIZE server config setting. If you don't have access
to the server admin you must break the file into smaller chunks and upload
it peicemeal.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Phil Barber" <ph*********@ajg.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
I am using a <INPUT> File html control to upload fiels to our server. it
basically works fine until you get a large file > 5 MEGS. Does anybody know
how to get around this limitation? or a better way to accomplish the same
thing?
thanks Phil.

Nov 17 '05 #2
Phil Barber <ph*********@ajg.com> wrote:
I am using a <INPUT> File html control to upload fiels to our server. it
basically works fine until you get a large file > 5 MEGS. Does anybody know
how to get around this limitation? or a better way to accomplish the same
thing?


It would help if you said what was going wrong when you had a large
file. Any relevant code would help, too.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #3
where exactly would I find MAXREQUESTSIZE (filename?)
thanks
Phil
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
This is probably due to the server that you're uploading to having a
maximum request size limit. A POST is a request that just does a lot of
explaining.

If you have access to the server as an administrator you can increase this
size with the MAXREQUESTSIZE server config setting. If you don't have
access to the server admin you must break the file into smaller chunks and
upload it peicemeal.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Phil Barber" <ph*********@ajg.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
I am using a <INPUT> File html control to upload fiels to our server. it
basically works fine until you get a large file > 5 MEGS. Does anybody
know how to get around this limitation? or a better way to accomplish the
same thing?
thanks Phil.


Nov 17 '05 #4
Hi,
this KB article describes the 4MB default and how to change it easily in
either the machine.config or application's web.config.
http://support.microsoft.com/kb/295626/EN-US/

HTH,
Premier JiangZemin

"Phil Barber" <pb******@houston.rr.com> wrote in message
news:uk**************@TK2MSFTNGP10.phx.gbl...
where exactly would I find MAXREQUESTSIZE (filename?)
thanks
Phil
"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
This is probably due to the server that you're uploading to having a
maximum request size limit. A POST is a request that just does a lot of
explaining.

If you have access to the server as an administrator you can increase
this size with the MAXREQUESTSIZE server config setting. If you don't
have access to the server admin you must break the file into smaller
chunks and upload it peicemeal.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.

"Phil Barber" <ph*********@ajg.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
I am using a <INPUT> File html control to upload fiels to our server. it
basically works fine until you get a large file > 5 MEGS. Does anybody
know how to get around this limitation? or a better way to accomplish the
same thing?
thanks Phil.



Nov 17 '05 #5

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

Similar topics

6
710
by: Mosher | last post by:
Hi all, this might be more of an html question but I think it can be done in PHP, so I will ask here. I have an html form that allows for .pdf file uploads. This script will serve two functions...
13
4280
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
6
4119
by: tshad | last post by:
I have an upload file input as: <input id="MyFile" style="width:300px" type="File" runat="Server"> This works fine, but I find that if my page doesn't pass validation during postback, the page...
4
4448
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...
1
2707
by: joshbeall | last post by:
Hi All, If I drop a form onto my page that allows file uploads, I know well enough how to handle the file upload in the server side via PHP. However, I have a question: when my browser...
9
2396
by: CGW | last post by:
I asked the question yesterday, but know better how to ask it, today: I'm trying to use the File.Copy method to copy a file from a client to server (.Net web app under IIS ). It looks to me that...
7
3165
by: pbd22 | last post by:
hi. i am having probs understanding how to grab a file being uploaded from a remote client. i am using hidden input fields for upload such as: <input id="my_file_element" type="file"...
2
4241
by: will.smothers | last post by:
All, I have two Windows Server 2003 boxes running IIS 6.0 webservers that host our proxy pac file. These two servers are behind a network load- balancer and house our corporation's Proxy PAC file....
1
1880
by: lPrentice | last post by:
Hello, After all this time, Linux file permissions still confuse me at times. I have a Python web-based application with an file (images) upload module. The application is running on two remote...
12
2455
by: GuangXiN | last post by:
I want the file upload element disappear, instead of it, I place a text box and a button with my own css defination. but it doesn't work on IE7. What should I do now? <form action="upload.php"...
0
7118
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6980
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7157
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
7364
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4886
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3087
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1397
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
282
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.