Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 289
  • Last Modified:

ASP.NET Download Limit Override in program

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
derftoy
Asked:
derftoy
1 Solution
 
Anurag ThakurCommented:
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now