check if the file is audio file in PHP
All the audio files format has "audio/"
common in MIME Type. So, we can check the $_FILES['file']['mime_type']
and apply a preg_match()
to check if "audio/"
exists in this mime type or not.
All the audio files format has "audio/"
common in MIME Type. So, we can check the $_FILES['file']['mime_type']
and apply a preg_match()
to check if "audio/"
exists in this mime type or not.