70
Direct Asset URL to Storage (S3, Azure, Cloudinary, etc)
Source: directus/directus#7612 · opened by @timstapl
It would be nice to have a public url setting for images and other assets. This would be most useful when wanting to access files directly on storage (eg directly from S3, Azure, etc.) Or when using something like Cloudinary. eg, say you are using an azure blob storage account, when you hit the api you can get the filename_disk for an image field, check that 'storage' is azure (or whatever you named it) and then your consumer can build out an image url that points directly to azure if that's what you desire. (Nuxt in my case). Inside of rich text fields you don't really have the same option, you just automatically get a /assets url for the image (optionally with a token added.) If your Directus instance is not publicly accessible this can be problematic. Currently we are either having to programmatically update rich text fields as we pull them, or use the url embed method. I'd like to see an option to prefix with a public url/host, most likely …
No pledges yet. Be the first to back this.
Comments
Similar requests
Error declaring STORAGE_<LOCATION>_ROOT when using cloudinary.
1 vote · 0 comments
Add Full Asset URL to API Response
5 votes · 0 comments
Store asset transformations for reference when serving assets from outside of the studio app
3 votes · 0 comments
Allow replacement of S3 Bucket URL with a CDN URL
25 votes · 0 comments
Directus Loader for Astro Content Layer
41 votes · 0 comments
No comments yet.