Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of filename recipes for mediaStore #548

Open
josephdenne opened this issue Apr 15, 2019 · 0 comments
Open

Addition of filename recipes for mediaStore #548

josephdenne opened this issue Apr 15, 2019 · 0 comments

Comments

@josephdenne
Copy link
Member

The structure of URLs and naming of images is important for SEO, so the current date and hash approach is a little limiting.

The ability to be able to store images for recall on this basis would be ideal: https://empireonline.com/movies/blade-runner-2049/posters/blade-runner-2049-poster.jpg for example

This necessitates recipes within the collection schema for individual mediaStore fields.

For example: /movies/{title}/posters/{title}-poster{format}

Where {title} = the name of another field in the document ("title", with the value of "Blade Runner 2049").

When you upload an image to API, you upload it separately from any document it may be included in. You POST to /media, not to a collection. As such we will need to post the specific field content of the document that the recipe references with the image (and if it's not filled in yet, alert the user that it is required).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants