Solved

ASP.NET Download Limit Override in program

Posted on 2012-03-19
1
283 Views
Last Modified: 2012-04-04
I have an ASP.NET page where I am using the ASP.NET Download control.  I am aware that .NET puts a limit of 4mb on the file and I can override that value either in the Web.config or Machine.config file.

What I would like to do is add a property in my settings for my application that my customers can control the size of the downloads individually.  I would like to read that property and then set the download size limit on the download page.

Reasons for doing this:

1) I can have different download limits in different parts of my application.
2) Client modifications to the Web.Config get over-written when they install a new version of my software.
3) Changing the machine.config now makes everything download at that limit and removes the flexibility to control file size.

So, I really need the ability to regulate the download size at the page level.  Does anyone know how I can do this?

Thanks,
Cory Jorgensen
Bitco Software
0
Comment
Question by:derftoy
1 Comment
 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 500 total points
ID: 37745097
I don't know if the setting can be done on a file level but definitely it can be done at the folder level
Please go through the following link and see if your problem gets resolved
http://weblogs.asp.net/jgalloway/archive/2008/01/08/large-file-uploads-in-asp-net.aspx
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question