Closed moscorp closed 3 years ago
See examples in filedropjs.org. MIME type is accessible via File.type. Or, on the server-side, use PHP's $_FILES['upload']['type']
or mime_content_type()
.
However, MIME checks are generally unreliable both client- and server-side. It's better to check file's actual contents using Fileinfo (PHP), gd, etc..
how to restrict MIME type before upload?!