Search the Community
Showing results for tags 'mime'.
Hi, If anyone has some C++ code to check a file's MIME type, I'd really appreciate a copy or a URL to find it. I am specifically trying to verify that if a file that I am reading (from a Windows file system) has a jpg file suffix, or variants thereof, that the file is indeed of MIME type image/jpeg. The development environment in this instance is Visual Studio 2017. I have scoured Google and Stack Overflow but haven't come up with anything. Many thanks in anticipation, Cheers, Necuima
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