The above attr allows for non spreadsheet MS documents like ppt and pptx to be pass validation. The error output when uploading a non-compatible file (like a png) returns the following:
Only files of type application/vnd.ms, excel, application/vnd.openxmlformats, officedocument.spreadsheetml.sheet is allowed
It appears there's some issue when parsing mime types that contain a dash.
Adding validation for MS Excel spreadsheet mime types doesn't appear to be working correctly:
The above
attr
allows for non spreadsheet MS documents likeppt
andpptx
to be pass validation. The error output when uploading a non-compatible file (like apng
) returns the following:It appears there's some issue when parsing mime types that contain a dash.