Hello,
I am using the file upload to upload image. I have specified the field to accept jpg and png, but it refuses to upload a jpg file:
Thanks,
Philippe
Hello,
I am using the file upload to upload image. I have specified the field to accept jpg and png, but it refuses to upload a jpg file:
Thanks,
Philippe
I downgraded to 3.0.5 and this works again. Not working with 3.0.6.
The file upload field now checks for real MIME types instead of just file extensions. That means you need to use proper MIME definitions in your control.
For example, instead of jpg
, it must be image/jpeg
. The same goes for PNG, which should be image/png
.
Please double-check the values you're using and make sure they follow the correct MIME format. That should fix the issue!
Let us know if it works with the adjusted values.
Kind regards
Thanks for coming back. Why is the filed change to this in the front-end:
while it still displayes as
Best regards,
Philippe
Hmm… that seems like some javascript issue. Could you check your console for javascript errors and share them here?
Hello,
This is the error:
Did I enter the values correctly in the fields?
When the field is empty, the front end displays the form correctly.
Thanks,
Philippe
Hmm… could you try to remove one MIME type after each other to see where the culprit is, starting by application/pdf?
Even when I leave just one format, I do not get the layout right:
Are there other settings (that I may not be bothered to look into/modify) that could impact this when file format are entered ?
Thanks
Hmm…for me, this works pretty well Do you have some optimization plugins running? If yes, could you try to temporary deactivate them?
Otherwise, feel free to send access via PM and I take a look