istogram/wp-api-content-migration

Importing svg images

Closed this issue · 1 comments

This one is a bit tricky. If a media gallery contains svg images then: -

public function createMedia($media)

createMedia will fail because WP "security" disables importing svgs (I've been trying to sort this myself locally but I've tried everything nothing works for me).

Allowing unfiltered uploads + adding svg to mime types fails.

@astray-heavy-arms thanks for pointing out this issue. This is now fixed by enabling the new config option that allows the uploads of svg media files.