Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Handling image uploads securely in PHP | Better HN
Handling image uploads securely in PHP
(codepunker.com)
1 points · by
codepunker
· 12y ago · 2 comments
Comments
[–]
NewsReader42
12y ago
You should also check the size of the image to make sure it's actually an image. I can quite easily get a php file into your system using your current way as you ONLY check for extension.
[–]
NewsReader42
12y ago
By size I mean dimensions.