You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add some allowed file type but define it with comma separated mime types when the first one is for sure not correct (for example for XML file add foo/bar,text/xml mime types
try to upload this file
It will be not uploaded because in the FileUploadTypes\Plugin::allowed_types we are removing other mime types and are using only the first one.
The risk of this change is high, so it can not be added without caution
The text was updated successfully, but these errors were encountered:
kkarpieszuk
changed the title
Only the first allowed mime type is in use in filter
Only the first allowed mime type is in use in filter upload_mimesJul 8, 2024
Steps:
foo/bar,text/xml
mime typesIt will be not uploaded because in the
FileUploadTypes\Plugin::allowed_types
we are removing other mime types and are using only the first one.This should be rewritten to something like:
The risk of this change is high, so it can not be added without caution
The text was updated successfully, but these errors were encountered: