File extensions (Unrelated)

medicasimple
medicasimple Member Posts: 1
edited May 1 in Developer APIs

Hi there all of you guys.

Thank you for helping me

.

Answers

  • Tom
    Tom Member, Cloudinary Staff Posts: 108

    Hi @medicasimple ,

    Thanks for reaching out.

    Yes, so when the resource_type of your asset is either image or video, the extension is not saved as part of the public_id as we know this is image/video.

    However, with raw files, the extension can be anything so include the extension in the public_id.

    Note: pdf's are automatically uploaded as resource_type image but you can specify this as raw if you would like to save it as raw resource_type.

    You should still be able to download images without an extension on image/video where when no extension is specified we will use the original format e.g. https://res.cloudinary.com/demo/image/upload/sample.jpg can be viewed/downloaded as https://res.cloudinary.com/demo/image/upload/sample

    If you are downloading via browser without the extension then it should automatically add the extension but when downloading via terminal (using wget), extension is not saved so you can copy the delivery URL from the UI/APIs as it will include the extension.

    Please let me know if you have any other questions or queries.

    Kind Regards,

    Thomas