Uploading SVGs
Hi, when I upload an SVG to my folder it is converted into an 'Authenticated' asset an I am unable to get a public URL. Can I convert I into public? Thanks
Answers
-
Please share more about how you are uploading the SVG file. Are you using an upload preset that sets your assets to authenticated? Do you use the upload widget in the media library or are you using an API or SDK call to do it?
0 -
If you are using APIs or SDKs to do your uploads, you can use the Upload API method "rename" to change the delivery type (type) from "authenticated" to "upload" which will make the asset publicly available. If you are using an upload preset that sets assets to "authenticated", you could look into creating a different preset, or not using a preset because the default will be a public URL.
0 -
Hi, thanks for your time. I'm just uising the drag-and-drop facility on the Cloudinary site
0 -
Do you have an Administrator that has set up a default Upload Preset to make all assets "Authenticated"? You could see if there is a default upload preset for images by clicking on settings (gear icon) and navigating "Upload". If there is a default preset that is controlling your delivery type, you'll see it listed as shown in the last image below. To get around that, you could create a preset with signing mode:="signed", and delivery type = "Upload". This preset will upload images that will be publicly available. Then use the upload widget and select your preset before uploading. NOTE: Your browser will download any URL with a .svg extension. If you want to see that image in your browser, you could replace the .svg extension with .png and the image will be rendered in the browser, as Cloudinary will do an on-the-fly transformation. This only works if you have a public image. Feel free to experiment with this URL: https://res.cloudinary.com/ac-self-service/image/upload/v1675711863/phdafiarmgbqjvwyk3ys.svg
Notice that it has the work /upload/ in the path following the /image/. This means its publicly available. Try replacing the .svg with .png and you should be able to render it in the browser.
Here's a link to free self-service training to learn more about creating presets:
0 -
Hi Thanks again. I created a preset but its not showing on the upload widget?
0 -
You'll have to create a support ticket and ask support to enable the flag to view upload presets in the upload widget. (This really should be a self-service option somewhere in settings—maybe one day.)
-1 -
A link to where to create a new ticket would have been useful
0 -
I'm not a Cloudinary employee, and was stating something I had to go through to enable the option. I figured that making a support ticket would be something you were already familiar with.
As for creating a support ticket, you can create one while in your Cloudinary account by clicking the "Help" button and then selecting "Contact Support." Or you can just go to the following and submit a request:
0