Uploading SVGs

Options

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

Tagged:

Answers

  • rebeccapeltz
    rebeccapeltz Member Posts: 3
    Options

    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?

  • rebeccapeltz
    rebeccapeltz Member Posts: 3
    Options

    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.

  • jamesg
    jamesg Member Posts: 5
    Options

    Hi, thanks for your time. I'm just uising the drag-and-drop facility on the Cloudinary site

  • rebeccapeltz
    rebeccapeltz Member Posts: 3
    Options

    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:

    https://training.cloudinary.com/learn/course/introduction-for-dam-users-and-content-editors/lessons/creating-presets-1117?page=1


    https://training.cloudinary.com/learn/course/introduction-for-dam-users-and-content-editors/lessons/creating-presets-1117?page=1



  • jamesg
    jamesg Member Posts: 5
    Options

    Hi Thanks again. I created a preset but its not showing on the upload widget?


  • pludlow
    pludlow Member Posts: 17
    Options

    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.)

  • jamesg
    jamesg Member Posts: 5
    Options

    A link to where to create a new ticket would have been useful

  • pludlow
    pludlow Member Posts: 17
    Options

    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:

    https://support.cloudinary.com/hc/en-us