473,762 Members | 8,598 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Max Request Length (different settings in same site)

I currently let users upload files (graphics) to a Web site. I want to limit
the size of graphics, so I have the following in Web.config
<httpRuntime maxRequestLengt h="110" />

That works just fine.

But now I want to add another page where the users can upload a file. This
time an Excel file. I'd like to enable uploading Excel files larger than
110K, so how can I enable that while keeping the 110K limit on graphics?

Thanks.
Nov 19 '05 #1
2 3515
Use a different IIS Application for uploading Excel files.

The httpRuntime element is an application-wide setting.

Or, increase the file size limit.

How much bigger than 110K are the Excel files ?
Couldn't you raise the limit a bit until it covers the expected Excel file sizes ?

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Verde" <A@B.COM> wrote in message news:Ol******** ******@TK2MSFTN GP15.phx.gbl...
I currently let users upload files (graphics) to a Web site. I want to limit the size of
graphics, so I have the following in Web.config
<httpRuntime maxRequestLengt h="110" />

That works just fine.

But now I want to add another page where the users can upload a file. This time an Excel
file. I'd like to enable uploading Excel files larger than 110K, so how can I enable
that while keeping the 110K limit on graphics?

Thanks.

Nov 19 '05 #2
Re:
<< Use a different IIS Application for uploading Excel files >>

I'm happy to give that a shot. Can I do that in the same Web site? What
about authentication. The customer must log in before he can access admin
pages. I'd hate to require him to log in twice (or separately to upload the
Excel file).

Re:
<< How much bigger than 110K are the Excel files ? >>

I'm not sure yet. The customer will be maintaining a parts catalog inventory
in Excel that gets uploaded to the Web site where I'll validate and transfer
the Excel content to a SQL Server db that supports the online catalog. I
know he has about 2000 parts.

Of course I could always just raise the limit and severely punish him if he
uploads graphics that I arbitrarily deem as "too big". Maybe I will
confiscate his mouse for a day for each infraction.

-V
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:OZ******** ******@TK2MSFTN GP10.phx.gbl...
Use a different IIS Application for uploading Excel files.

The httpRuntime element is an application-wide setting.

Or, increase the file size limit.

How much bigger than 110K are the Excel files ?
Couldn't you raise the limit a bit until it covers the expected Excel file
sizes ?

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Verde" <A@B.COM> wrote in message
news:Ol******** ******@TK2MSFTN GP15.phx.gbl...
I currently let users upload files (graphics) to a Web site. I want to
limit the size of graphics, so I have the following in Web.config
<httpRuntime maxRequestLengt h="110" />

That works just fine.

But now I want to add another page where the users can upload a file.
This time an Excel file. I'd like to enable uploading Excel files larger
than 110K, so how can I enable that while keeping the 110K limit on
graphics?

Thanks.


Nov 19 '05 #3

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

Similar topics

72
4486
by: B McDonald | last post by:
http://www.galtsvalley.com Hi all. I've recently made some major stylistic changes to my site and now it is essentially a new design with some new CSS plumbing. I am hoping that a few hardy souls can go check it out and tell me how it renders on their platform/browser combos. I have tested it under W2K, WXP, and System 9 on a Power Mac 8600: W2K: IE5.5 and Opera 7.1 (some small issues in Opera) WXP: IE6 and NS7.1 (in IE6 a strange...
4
3157
by: James Johnson | last post by:
Dear C#Dex, I am trying to automate a POST to a web page that clicks a button. I have been able to hit a target web page and run the web page. However, the button on the page does not click. I can set the target web page to change to a new URL when I hit it, and that works, but I cannot get the button to click based on my POST command. Is there some secret to clicking the button? I have a button named btnGo and I set the value of...
5
383
by: TomR | last post by:
We are having problems with synchronus web request calls blocking our ASP.NET performance. Here is the setup: We have a php script running on Apache at Site A on the internet. This script does nothing more than wait 15 seconds before serving a page. (You can try it if you want. www.337skymaster.com/mypost.php) Using this page, we can open four IE browsers on the same machine and start each browser at the same time, and have all four...
3
13366
by: JerryW | last post by:
I uninstalled/reinstalled .NET 2003 with no errors. When I try to create a Visual C# ASP.NET Web Application I get the error: "The Web server reported the following error when attempting to create or open the Web project located at the following URL: 'http://localhost/MyWebTest'. 'HTTP/1.1 500 Internal Server Error'. The Event log has: "Failed to execute request because the App-Domain could not be
3
4022
by: maria.s | last post by:
Hi, I try to create a calender-item in the personal calendar folder from an ASP.NET application using XML-HTTP Request (WebDAV). System: Windows 2003 SP1, Exchange 2003 SP1 Configuration IIS: Default Web Site stopped, OWA running on a second virtual site, my application is running on a third virtual site.
3
5719
by: Ed Sonneveld | last post by:
Hi, I have hosted my webservice at a hosting company and it has been working fine for 2 years now. The webservice is called by winforms clients over the internet, using the proxy class generated by visual studio. What I do not understand, however, is that sometimes (say 1% of all calls) are being executed twice on the server side. I notice that because each call makes an entry in the database. This problem has been around as long as...
6
3580
by: Håkan | last post by:
Hi! I get HTTP/1.1 400 Bad Request when I try to access a aspx-page running on server 2003 SP1 from internet explorer 6 running on the same machine. Here is the URL I am using: ...
53
5265
by: Jonas Smithson | last post by:
In his book "CSS: The Definitive Guide" 2nd edition (pgs. 116-117), Eric Meyer has an interesting discussion about "font-size-adjust" that was evidently dropped in CSS 2.1 due to browser non-support. I'm wondering if there's some way I could still get a primitive version of this functionality, because different fonts display at very different optical sizes for the same nominal sizes. For example, suppose I want type to display in...
3
1769
by: Joseph Geretz | last post by:
I'm using the Request Filter documentation which can be found here: http://msdn.microsoft.com/en-us/library/system.web.httprequest.filter.aspx In this example, two filters are installed, one filter uppercases every alphabetic character and then the second filter replaces every 'E' with "#'. OK, very nice. What's trivial about these examples is that the returned string is exactly the same length as the string which is actually read...
0
9378
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10137
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8814
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7360
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5268
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3914
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 we have to send another system
3
3510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2788
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.