Malaysian Posted December 17, 2011 Share Posted December 17, 2011 Hi every one, I am reading the coffee's image upload part. I am not familiar with file upload. The || (! in_array($image_info['mime'], $allowed_mime)) , I do not understand 'mime'. Is this predefined or fixed? Thanks for reply 1 Link to comment Share on other sites More sharing options...
rob Posted December 17, 2011 Share Posted December 17, 2011 mime is returned by getimagesize, it's value changes depending on the file type being uploaded. In a nutshell mime type is what kind of file it is, i.e. jpeg, png, pdf etc. Link to comment Share on other sites More sharing options...
Paul Swanson Posted December 19, 2011 Share Posted December 19, 2011 MIME is an acronym for Multipurpose Internet Mail Extension, and is an internet standard for different file types. http://en.wikipedia.org/wiki/MIME 1 Link to comment Share on other sites More sharing options...
Recommended Posts