1
Answer

File uploader validations

Ask a question
naveen k m

naveen k m

10y
882
1
Hi,
I need a validator for file upload functionality in my application developed using asp.net.
the validator should allow only doc,pdf files. Even if the user tries to enter malicious files
by changing the extension,the validator should not allow.
Please let me know how to detect renamed extensions in C#
 
Thanks in advance

Answers (1)