Skip to content

Conversation

@kuchenundkakao
Copy link

If SVG Upload is enabled, SVG can't be chosen in file_list Field because it is MIME-Type "image", but doesn't have Size Data.

If SVG Upload is enabled, SVG can't be chosen in file_list Field because it is MIME-Type "image", but doesn't have Size Data.
@jtsternberg
Copy link
Member

There needs to be another way to determine this. Currently, this PR causes images to be processed as files: http://b.ustin.co/lg5j

@kuchenundkakao
Copy link
Author

yeah sorry, i thought i could use the wp global methods. Replaced it with a check for the svg extension for now.

@jtsternberg
Copy link
Member

Played with this a bit. I think it would be more ideal to use the svg as an image and output the preview (and workaround the "size" checks).

@jtsternberg
Copy link
Member

Please test this branch as I've attempted to fix the svg image display: https://github.com/WebDevStudios/CMB2/tree/fix-svg-display

@kuchenundkakao
Copy link
Author

Yep, Works ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants