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

Possibility to change storage provider adapter without breaking URLs #99

Open
mayel opened this issue Jun 7, 2022 · 2 comments
Open

Comments

@mayel
Copy link

mayel commented Jun 7, 2022

It would be useful to for example switch from using local storage to s3, without having to migrate existing files but having their URLs still work rather than pointing to the new asset_host

@achempion
Copy link
Member

Could you elaborate what do you mean by that?

For local storage the app domain is going to be used but for S3, I don't think you can serve file from your own domain unless you have additional proxies in place.

@mayel
Copy link
Author

mayel commented Jun 13, 2022

I don't mean serving s3 files under your domain, but rather when you change your config from local to s3, and users have already uploaded files, currently the URL generated changes to use the s3 hostname, resulting in 404s, whereas it should remember to use the local domain for only those old uploads.

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

2 participants