2022 Apr 29 9:13 AM - edited 2024 Feb 04 3:28 AM
i noticed that the mime type is set as application/octetstream . when i maually edit this to image/jpeg the images are loading.
How to change this default mime type - application/octetstream for all the media files.
Any help is appreciated !!
Request clarification before answering.
The issue of mime type is for media files that are already exisitng in the system. There are more than 90k media files for which the mime type is application/octet-stream. how to set mime type of these files as image/jpeg .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mukesh,
This will be effectively a solution on the media model creation end. If you are creating the media from backoffice, you can set the mimetype during creation.
Same is the case if you create the Media from code or from impex. The mime is a field in the AbstractMediaModel, which can be set according to your need during the media model creation.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.