When I upload a file that is a PDF but has the file ending .txt I expect the importer to give me a validation error but it does not on Mac OS. It seems this is because Mac OS X changes the mime type automatically when you edit the extension 🤦♀️
Expected Behaviour
I expected to be told that the file was of an unsupported file type.
Steps to Reproduce
Create a fresh docker (including the code in PR #50 if it's not yet merged).
Drupal Version
10.1
Tripal Version
4.x dev (most recent commit)
Module Version
4.x dev (most recent commit)
Site Operating System
Debian Linux
Installation Method
TripalDocker docker
Browsers
Firefox
Observations
When I upload a file that is a PDF but has the file ending
.txt
I expect the importer to give me a validation error but it does not on Mac OS. It seems this is because Mac OS X changes the mime type automatically when you edit the extension 🤦♀️Expected Behaviour
I expected to be told that the file was of an unsupported file type.
Steps to Reproduce
.pdf
to.txt
Relevant log output
No response