Click here to Skip to main content
15,919,340 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hey

i want to apply limit when any user upload their files i.e 100kb or mb

is this apply in function or in web.config file
Posted

A google search for "asp.net limit file upload size" should give you more info.

This article on code project should help too:
Restrict the size of file uploads in ASP.NET[^]
 
Share this answer
 
may be you check for the file upload property for max size the file can support.
eg. ContentLeng­ property of file upload control you can check for max value.
-SG
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900