By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,965 Members | 1,468 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,965 IT Pros & Developers. It's quick & easy.

Max Request Length (different settings in same site)

P: n/a
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 maxRequestLength="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
Share this Question
Share on Google+
2 Replies


P: n/a
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**************@TK2MSFTNGP15.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 maxRequestLength="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

P: n/a
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**************@TK2MSFTNGP10.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**************@TK2MSFTNGP15.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 maxRequestLength="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 discussion thread is closed

Replies have been disabled for this discussion.