This topic contains 3 replies, has 2 voices, and was last updated by Mike Kudelya 7 years, 5 months ago.
- Topic
Hello folks,
i have a problem. I have a custom entity with a manyToOne to “Oro\Bundle\AttachmentBundle\Entity\File”, and Organization / Owner configured to the entity.
I have the entity form with FileType. Now, if i try to upload an image all is ok, but if i try to upload a pdf i get “The mime type of the file is invalid (“application/pdf”). Allowed mime types are “image/gif”, “image/jpeg”, “image/png””, caused by vendor/oro/platform/src/Oro/Bundle/AttachmentBundle/Validator/ConfigFileValidator.php
1$fieldConfigId->getFieldType()because it’s not === “file”. How can i configure it? There is a reference where i can check entity configuration?
Tnx
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.