?
avatar pnkr
pnkr
25 Oct 2020

Steps to reproduce the issue

Navigate to content media
Upload an svg
hover over the uploaded file

Expected result

Highlight the file

Actual result

opens a tooltip with some code inside

System information (as much as possible)

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

Additional comments

I have attached a screenshot to show the problem.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar pnkr pnkr - open - 25 Oct 2020
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Oct 2020
avatar pnkr pnkr - change - 25 Oct 2020
The description was changed
avatar pnkr pnkr - edited - 25 Oct 2020
avatar pnkr
pnkr - comment - 25 Oct 2020
avatar infograf768
infograf768 - comment - 25 Oct 2020

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.

Screen Shot 2020-10-25 at 11 38 16

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 ;)

avatar infograf768
infograf768 - comment - 25 Oct 2020
avatar infograf768 infograf768 - change - 25 Oct 2020
Status New Confirmed
avatar brianteeman
brianteeman - comment - 25 Oct 2020

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

avatar infograf768
infograf768 - comment - 25 Oct 2020

Screen Shot 2020-10-25 at 12 29 26

avatar brianteeman
brianteeman - comment - 25 Oct 2020

ok - false cause then - that must have been an issue with my svg

avatar dgrammatiko
dgrammatiko - comment - 25 Oct 2020

@infograf768 chenge

to const imageExtensions = ['jpg', 'jpeg', 'png', 'gif', 'svg']; and ,magic will happen

avatar pnkr
pnkr - comment - 25 Oct 2020

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.

Screen Shot 2020-10-25 at 11 38 16

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 ;)

Well from media manager at option menu, if you set:

  1. Legal Extensions (File Types) add svg,SVG
  2. Legal MIME Types add image/svg+xml

you are ready to upload an svg file.

avatar infograf768
infograf768 - comment - 25 Oct 2020

Legal MIME Types add image/svg+xml

As i wrote above, that did not work here. got 403.
image/svg did work

avatar dgrammatiko
dgrammatiko - comment - 25 Oct 2020

Test #31233

avatar Quy Quy - change - 25 Oct 2020
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2020-10-25 13:06:43
Closed_By Quy
avatar Quy Quy - close - 25 Oct 2020

Add a Comment

Login with GitHub to post a comment