is it possible to store XML files on Cloudinary?


1 comment

  • Avatar
    Aleksandar Kostadinov

    Hi Refo,

    I know this was resolved as a result of your post on the Cloudinary Community Facebook page, but I'll share the details in this thread too in case any other user runs into a similar situation.

    The most likely reason would be that the resource_type is not provided as part of the SDK upload method call and it's defaulting to "image". Since the files you're uploading are XML they are attempted to be treated as SVG and since they are not the validation fails and that's why the error is returned. Setting resource_type: "raw" in your upload request will upload the XML and allow you to deliver it.

    Comment actions Permalink

Please sign in to leave a comment.