Quantcast
Channel: Security Vulnerability
Viewing all articles
Browse latest Browse all 317

Check File Type

$
0
0

Im trying to check if a user actually uploaded a picture or some other junk like batch or who knows.

I read on the forum that you must check the extension however the user can easily change .exe to .png.

How would i go about to determine what the filetype is and what settings should i apply to the folder in which im uploading the file to check if its really a png before transfering it to my normalfolder where i keep users pictures.


Viewing all articles
Browse latest Browse all 317

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>