Currently using [.plainText, .spreadsheet, .html, .pdf, .xml, .presentation, .jpeg, .bmp, .gif, .png, .tiff, .content]
these UTTypes but still able to attach .sh type files , how do I restrict executable files by still supporting text and doc files.
Also UTType doesn't specify type for .doc, .docx files
I am not sure if you can restrict .sh file types considering that it is probably allowed when you accept plain text. Regarding the doc file type you can extend
UTTType
and implement your own.doc
and.docx
types: