Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

Is it Possible to Alter the URL to a File in the CDN?

1 replies
Last updated: Aug 31, 2021
Hi, I have a question about files: Is it somehow possible to alter the URL to a file in the cdn? I know we can append
?dl=
to ensure a certain filename on a downloaded file, but the URL to the file itself will be a hash of some sort and therefore not really be human-readable. An example:
How it is today:
https://cdn.sanity.io/files/EXAMPLE/test/0a58f9ef059ce5d5995b1ede2d31149dc79d287c.pdf?dl= How I would like it:
https://cdn.sanity.io/files/EXAMPLE/test/event-timetable.pdf?dl=
Aug 31, 2021, 8:20 AM
Hey there! There isn't a way to change the url of the asset, unfortunately.
Aug 31, 2021, 8:54 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?