Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 21, 2010 06:53 AM by sweta chotalia
Member
15 Points
8 Posts
Feb 20, 2010 09:12 PM|LINK
go to http://southdesk.com/content/aspnet-file-uploader-validation-file-type-and-file-size to see solution
All-Star
35986 Points
6550 Posts
Feb 20, 2010 10:40 PM|LINK
sarojsigdel go to http://southdesk.com/content/aspnet-file-uploader-validation-file-type-and-file-size to see solution
Your "solution" only checks if the maximum size is not exceeded. Perhaps you should read the entire thread...?
Feb 21, 2010 12:17 AM|LINK
hi hans_v,
You should see the post very carefully. In the code there is regular expression validator which checks the file extension and blocks unwanted files from uploading.
thanks
Feb 21, 2010 12:27 AM|LINK
sarojsigdel In the code there is regular expression validator which checks the file extension
Yes indeed
sarojsigdel and blocks unwanted files from uploading
No, because if you would have read the complete thread and links, you would have noticed that just checking the extension is not enough....
2 Points
1 Post
Jul 21, 2010 06:53 AM|LINK
Thank You so much. This info was much useful.
sarojsigdel
Member
15 Points
8 Posts
Re: Fileupload: allow only .jpg .gif and .png
Feb 20, 2010 09:12 PM|LINK
go to http://southdesk.com/content/aspnet-file-uploader-validation-file-type-and-file-size to see solution
hans_v
All-Star
35986 Points
6550 Posts
Re: Fileupload: allow only .jpg .gif and .png
Feb 20, 2010 10:40 PM|LINK
Your "solution" only checks if the maximum size is not exceeded. Perhaps you should read the entire thread...?
sarojsigdel
Member
15 Points
8 Posts
Re: Fileupload: allow only .jpg .gif and .png
Feb 21, 2010 12:17 AM|LINK
hi hans_v,
You should see the post very carefully. In the code there is regular expression validator which checks the file extension and blocks unwanted files from uploading.
thanks
hans_v
All-Star
35986 Points
6550 Posts
Re: Fileupload: allow only .jpg .gif and .png
Feb 21, 2010 12:27 AM|LINK
Yes indeed
No, because if you would have read the complete thread and links, you would have noticed that just checking the extension is not enough....
sweta chotal...
Member
2 Points
1 Post
Re: Fileupload: allow only .jpg .gif and .png
Jul 21, 2010 06:53 AM|LINK
Thank You so much. This info was much useful.