I have a doubt as to which is MIME in PHP of the programs written in C language, either .c or c++, what happens is that in my application I need that they can only upload files with that extension, I want to make a filter something like this:
if( $_FILES['archivo']['type']=='image/png')
but for extension .co c++
Try with this:
In addition, we have ways to know the
MIME
value of a file:Cheers,