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

Remove the prefix of the google apis and bucket name from the database #179

Open
williamatpaper opened this issue Sep 27, 2023 · 0 comments

Comments

@williamatpaper
Copy link

williamatpaper commented Sep 27, 2023

Is your feature request related to a problem? Please describe.
When using this plugin, the full URL of the path to the content within the bucket gets stored in the database. We're currently in the middle of migrating between buckets, and upon investigation, we determined that we'd not only need to migrate the content in the bucket, but also update the database to reference the new URL. I believe it's best practice to store the path to the image, and let the app dynamically construct the URL for you.

Describe the solution you'd like
When media gets uploaded, the database holds a relative path to it. When the app needs to load the media, it prepends the prefix based on the baseURL and basePath provided dynamically.

Describe alternatives you've considered
Leaving the URLs in the database, and running a query to update them.

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