Closed bruvellu closed 3 weeks ago
In addition to checking the file extension, we could check the content_type header from the uploaded files. Then, only continue with the upload if both extension and MIME type match the accepted formats.
content_type
See here the most common or the full list of MIME types.
In addition to checking the file extension, we could check the
content_type
header from the uploaded files. Then, only continue with the upload if both extension and MIME type match the accepted formats.See here the most common or the full list of MIME types.