By shimonshv
I want to create a DO space for media files and to use it with my domain. Also I need an ability to provide download link for each media file. For example: http://mydomain.com/video.mp4 - To play video http://mydomain.com/download/video.mp4 - To download this file
Is it possible and how? Can you please share a link for steps to configure this.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Hey there,
A custom CDN endpoint can be used for the domain customization: https://www.digitalocean.com/docs/spaces/how-to/customize-cdn-endpoint/
To make the files act differently (View vs. Download) you’ll want to modify the metadata of the separate files to act differently: https://www.digitalocean.com/docs/spaces/how-to/metadata/
It isn’t possible at this time to show the same file at two separate locations with different behaviour; having the file uploaded twice in Spaces/with separate metadata is necessary.
If you have any other questions or need anything else, just write back in and let us know! Thank you for being a DigitalOcean customer, we are here to assist you 24/7. :)
Regards, Ethan - Developer Support Engineer II - DigitalOcean
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.