File type not permitted or mime type does not match the file content error

Mark_Bailey
Mega Guru

I have a user reporting an issue with attachment since we upgraded to Paris. 

He is getting the error:  File type not permitted or mime type does not match the file content

The attachment is an allowed extension (Msg) but the message he saved has pdf attachments. 

I am wondering if the imbedded pdf on the msg file would cause the mime mismatch and if so why would this have worked pre paris?

1 ACCEPTED SOLUTION

I did have the glide.security.file.mime_type.validation system property set to true, but I didn't have any values in the system property glide.attachment.extensions, so it wasn't checking for MIME type.  I added msg to glide.attachment.extensions, then successfully uploaded the msg with pdf attachments again.  

View solution in original post

8 REPLIES 8

I did have the glide.security.file.mime_type.validation system property set to true, but I didn't have any values in the system property glide.attachment.extensions, so it wasn't checking for MIME type.  I added msg to glide.attachment.extensions, then successfully uploaded the msg with pdf attachments again.  

OK thanks, I now think it is more specific to my instance so I'll go from there. 

Hi Brad,

I have a similar problem now. Outlook email with 2 mp4 files plus one .msg file. I have saved this attachment as a msg file. But when I try to upload, I get these error messages.

- MIME type mismatch for file: FW Progressive Roofing Potential Rigging Violation.msg. Expected type:application/vnd.ms-outlook, Actual type: application/x-tika-msoffice

 

Also I checked  that - glide.security.file.mime_type.validation system property set to true

What am I doing wrong? I don't have any values in the system property glide.attachment.extensions

Would appreciate your help

Thank you

Shubha

 

mfhaciahmetoglu
Mega Sage

Check if the imported files have any security labels as well. They should not have any -- meaning that it should be Public. 

 

Then it will work.