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

Context does not contain region and size #605

Open
GeronimoSuneco opened this issue Sep 12, 2022 · 0 comments
Open

Context does not contain region and size #605

GeronimoSuneco opened this issue Sep 12, 2022 · 0 comments

Comments

@GeronimoSuneco
Copy link

Most importantly, I need to access the size before the image is retrieved. I would like to reduce the amount of transactions needed, so it would be beneficial to be able to check for sizes before the image is retrieved.

I am implementing a tiered access system and need to redirect based on the given size. The images on the db are very large and if the requested size is too large, I want to redirect to a smaller size endpoint. However, I seem to only be able to access the sizes after the image is retrieved, which is too late in the lifecycle.

Could you implement a feature where, similarly to retrieving the identifier from the url, I can retrieve the size from the url. Currently, I implemented a workaround where I get the Local URI and split by "/"

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

No branches or pull requests

1 participant