Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi ,
i have file upload that i want user uploads every file except dangerous file.
what type of files are dangerous in Upload that i must check them with
HttpPostedFile.ContentType

thanks alot
Posted

That depends on what you are going to do with them! If all you do is store them, either in a folder or a database, then no file is intrinsically "dangerous". It could become dangerous when you used it, or the used downloaded it.

If you are going to load them as an application, or as a datafile to an application, then almost any file could be considered dangerous to some extent.
 
Share this answer
 
Comments
zinajoonjooni 26-Nov-11 5:24am    
thanks for your answer,i store them in a folder to give their links to user in a post of cms project
Sergey Alexandrovich Kryukov 26-Nov-11 23:20pm    
This is the only correct answer so far, my 5.
--SA
I think .exe type file will be dangerous .
 
Share this answer
 
Some Of .exe,.inf File Are dangerous...
http://www.computing.net/answers/security/dangerous-file-extensions/3500.html[^]

check this link once you may get some dangerous file extentions
 
Share this answer
 
v2
exe,bat, or any executable file may be dangerous.
Dangerous_file_types
 
Share this answer
 
v2

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