Navigate to content media
Upload an svg
hover over the uploaded file
Highlight the file
opens a tooltip with some code inside
Joomla Version: 4.0.0-beta5-dev
PHP Version 7.3.21
Database Type mysql
Database Version 5.7.30-cll-lve
Database Collation utf8_general_ci
Database Connection Collation utf8mb4_general_ci
I have attached a screenshot to show the problem.
Could not figure how you uploaded a svg via media manager (yep, I added it in Options). Had to do manually, but I confirm the issue when there is an .svg present.
This comes directly from the mediamanager.min.js code
[e._v(" :title=\"translate('COM_MEDIA_TOGGLE_SELECT_ITEM')\">\n ")]
EDIT: figured out how to upload: use image/svg
as MIME type and not image/svg+xml
;)
Status | New | ⇒ | Confirmed |
the problem is in the mime type detection
If you click on the info for the file it will be incorrectly saying mime type false
ok - false cause then - that must have been an issue with my svg
@infograf768 chenge
const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'svg'];
and ,magic will happen
Could not figure how you uploaded a svg via media manager (yep, I added it in Options). Had to do manually, but I confirm the issue when there is an .svg present.
![]()
This comes directly from the mediamanager.min.js code
[e._v(" :title=\"translate('COM_MEDIA_TOGGLE_SELECT_ITEM')\">\n ")]
EDIT: figured out how to upload: use
image/svg
as MIME type and notimage/svg+xml
;)
Well from media manager at option menu, if you set:
you are ready to upload an svg file.
Legal MIME Types add image/svg+xml
As i wrote above, that did not work here. got 403.
image/svg did work
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-10-25 13:06:43 |
Closed_By | ⇒ | Quy |
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31229.