Not recognized a Base64 DataURI string with mime-type "image/svg+xml" with directly upload from the browser

Comments

3 comments

  • Avatar
    Aleksandar Kostadinov

    Hi,

    Thanks for sharing that. The reason you can't apply a transformation is that the SVG which was uploaded via Base64 seems to be recognised as a "raw" file rather than "image" and you can't apply transformations on raw files. I will do some tests on our side and provide more information, but if you are going to be uploading images specifically, then for the meantime and as a workaround, you can change the upload API endpoint from `.../auto/upload` to `.../image/upload` and that should handle the SVG Base64 upload correctly. For example, you may be able to do that by running:

    $('.cloudinary_fileupload').fileupload('option', 'url', 'https://api.cloudinary.com/v1_1/mockup/image/upload');

    Let me know if that works for you for the meantime.

    1
    Comment actions Permalink
  • Avatar
    guntur hakim

    Hi, Aleksandar Kostadinov

    thanks for advice, finally I can solve this with my developer at my company roomme. and image appear more faster look up to my user

    0
    Comment actions Permalink
  • Avatar
    Mockup

    Hi,

    That works. Thank you very much!

    0
    Comment actions Permalink

Please sign in to leave a comment.