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.phpPHP1$fieldConfigId->getFieldType()
because it’s not === “file”. How can i configure it? There is a reference where i can check entity configuration?
You must be logged in to reply to this topic.