is it possible to store XML files on Cloudinary?
Hi.
I have a question, is it possible to store XML files on Cloudinary? I have an application that deployed on Heroku which is read-only filesystems that don't support storing uploaded files.
I used Cloudinary to store all the media, but whenever I try to generate the sitemaps automatically through the system, then upload the XML files to Cloudinary, but they always give me an error message like this "Cloudinary\Error: Invalid SVG document in C://..."
is there someone having the same problem? what is the best way to solve this problem?
Looking forward to any help.
Thank you very much.
0
-
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.
0
Post is closed for comments.
Comments
1 comment