diff --git a/PictureInput.vue b/PictureInput.vue index 8426f71..01d7107 100644 --- a/PictureInput.vue +++ b/PictureInput.vue @@ -530,6 +530,9 @@ export default { const fileName = options.fileName || source.split('/').slice(-1)[0] let mediaType = options.mediaType || ('image/' + (options.fileType || fileName.split('.').slice(-1)[0])) mediaType = mediaType.replace('jpg', 'jpeg') + if (mediaType === 'image/svg') { + mediaType = 'image/svg+xml' + } e.target.files[0] = new File([imageBlob], fileName, { type: mediaType }) this.onFileChange(e, true) })