By default FileUpload control in asp.net uploads upto 4MB size of files and it doesn't allow 'exe' files.
To increase the file size limit that a fileupload control can upload, just add the following line to web.config
< system.web >
< httpruntime executiontimeout="500" maxrequestlength="4096" >
< /system.web >
Here 'executionTimeout' in milliseconds and 'maxRequestLength' in kb. So, increase the maxRequestLength to upload large files.
No comments:
Post a Comment