Access to raw static files without "/raw/upload" path
Hi,
I understand we can upload static files such as .css, .js, .ico and tiny material images and they are accessible with URL like '/raw/upload/foo/bar/favico.ico'.
https://cloudinary.com/blog/using_cloudinary_to_manage_all_your_website_s_assets_in_the_cloud
And I also understand that image files can be accessed without `/image/upload`.
https://cloudinary.com/blog/how_to_dynamically_create_seo_friendly_urls_for_your_site_s_images
Due to some reason, we'd like to deliver these static files without '/raw/upload'.
Let's say, we have all of such materials under a directory, '/static' recursively.
```
/static
/img
clear.gif
smile.png
/css
common.css
banner.css
```
For instance, in `/css/common.css`
```
li a {
background: url(/static/smile.png) no-repeat 2px 1px;
}
```
CSS points an absolute path `/static/smile.png` and we cannot modify it to `/raw/upload/static/smile.png` due to some reason.
Is it possible to access them with `/static/......` ?
-
When accessing raw files
`/raw/upload`
should be replaced by `/files`. For example, for original file:
https://res.cloudinary.com/demo/raw/upload/sample_spreadsheet.xls
https://res.cloudinary.com/demo/files/sample_spreadsheet.xls/excel-file
-
Hi Ryan,
Please see the following section in the documentation that provides details on SEO suffixes, including "/raw/upload/" => "/files/" that Shirly mentioned.
https://cloudinary.com/documentation/advanced_url_delivery_options#dynamic_seo_suffixesIf you have any questions please let us know.
-
Hey Aleksandar, thanks for such a quick reply! Unfortunately after following that resource I wasn't able to access my files still.
When I click on my file and Copy link, I get this:
When I replace raw/upload/ with files/ i just get a 404 error
-
Hi Furqan,
The restriction on PDF and archive delivery for new accounts is mentioned here:
https://cloudinary.com/documentation/paged_and_layered_media#delivering_content_from_pdf_files
https://cloudinary.com/documentation/image_delivery_options#blocked_delivery_formats_for_security
If you have a free account and would like to deliver such files, please create a request for our support team and let us know some more about the files that you want to deliver, what content is inside them, and who will be permitted to upload them to your account
Thanks,
Stephen
Please sign in to leave a comment.
Comments
7 comments