0

I know there are more image types than what I've found but I can't find them anywhere. Here's what I have so far. I want to allow all image file types that can be displayed using the img tag. I remember there being a weird one for jpegs in IE or something. Does anyone know of the type I'm talking about or know where I can find a list of them?

e.g. .png .jpeg .jpg and .gif

"image/gif"
"image/jpeg"
"image/png"
Alexis Tyler
  • 1,394
  • 6
  • 30
  • 48
  • 2
    You could start your research by examining the types PHP can natively detect: http://php.net/manual/en/function.exif-imagetype.php What image types browsers support may vary very widely though. – deceze Apr 24 '13 at 09:05
  • 1
    google: image mimetypes – Andrej Bestuzhev Apr 24 '13 at 09:05
  • I did use the search and I couldn't find anything. Either I wasn't searching correctly or they aren't what I'm looking for. – Alexis Tyler Apr 24 '13 at 09:07
  • Andrej please write it as an answer so I can select it as the correct one. – Alexis Tyler Apr 24 '13 at 09:08
  • possible duplicate of [How can I only allow certain filetypes on upload in php?](http://stackoverflow.com/questions/2486329/how-can-i-only-allow-certain-filetypes-on-upload-in-php) – jww Apr 26 '14 at 21:06

1 Answers1

1

try http://en.wikipedia.org/wiki/Image_file_formats

the information inside the actual image that determines the type. (mime-types)

http://site.com/image.php?name=file'> could actually render an image