Warning: include_once(/home2/idlequot/public_html/TECHNODOULIA.COM/wp-content/plugins/wp-super-cache/wp-cache-phase1.php): failed to open stream: Permission denied in /home/technodoulia/public_html/wp-content/advanced-cache.php on line 14

Warning: include_once(): Failed opening '/home2/idlequot/public_html/TECHNODOULIA.COM/wp-content/plugins/wp-super-cache/wp-cache-phase1.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/technodoulia/public_html/wp-content/advanced-cache.php on line 14
Validate Size Of FileUpload Control | Technodoulia

Validate Size Of FileUpload Control

When we use Fileupload control in asp.net it has some limit of file size that you are willing to upload, if you want to validate that file size like you want that your upload size should be less than 50 kb.

you can easily get code for how to extend size of FileUpload Control

if (FileUpload1.HasFile)

int getlnthInByte = FileUpload1.PostedFile.ContentLength;
if (getlnthInByte <= 51200)  // File size in bytes

//now right your code for uploading image





hope you find out what you looking for.

Leave a Reply