Max Request Length (different settings in same site)

V

Verde

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.
 
J

Juan T. Llibre

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 ?
 
V

Verde

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top