Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the complete list of valid file extensions for images?

And the images I'm referring to are the ones that can be embeddable in a web browser not .tif, .psd, etc.

So the only ones I'm aware of are .png / .jpg / .jpeg / .gif / .bmp

are there any more?

Reason why I need this info is to only allow valid images to be uploaded in my php file upload script.

like image 547
Sam Avatar asked Apr 07 '11 15:04

Sam


1 Answers

you can do what ever you like, its all about the headers, and the information inside the actual image that determines the type. (mime-types)

hence why <img href='http://site.com/image.php?name=file'> could actually render an image

like image 76
dogmatic69 Avatar answered Oct 10 '22 02:10

dogmatic69