Use Filename Without Underscores

Comments

1 comment

  • Avatar
    Marissa Masangcay

    Hi, 

    You can use the parameter public_id upon upload to preserve the spaces in your resource's ID. So an example would look like:

    cloudinary.v2.uploader.upload("my_mom.jpg", { public_id: "my mom" });

    Please just note that the URL for this resource will have '%20' inserted in the blank spaces for the browser to be able to parse. So an example URL would look like this:

    http://res.cloudinary.com/demo/image/upload/my%20mom.jpg

    I hope this helps!

    Thanks,
    Marissa

    0
    Comment actions Permalink

Please sign in to leave a comment.