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
I have tested the validation by changing the extension of a file. For example I took a file called 'test.pdf' and changed it to 'test.docx'. I validate as follows:
I have tested the validation by changing the extension of a file. For example I took a file called 'test.pdf' and changed it to 'test.docx'. I validate as follows:
validates :file, presence: true, blob: { content_type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'}
This passes. Shouldn't the validation fail since this is really a pdf and not a docx document?
The text was updated successfully, but these errors were encountered: