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
Branding: Change File IDs to full URL #5953
Comments
Sounds great! For internal files you might want to store the absolute path to the file and not the full URL with domain. E.g. I have a BTCPay instance with multiple domains mapped. I mean it would not be any problem if you use the full URL as long as that domain stays mapped. Problem will arise if you switch to another domain then the old asset links might break, this a big pain point with wordpress for example. So if possible, for internal URLs I would store the absolute path (/files/public/path/file-something-logo.png) because it will be domain agnostic. |
how about we introduce format resolvers like "filed:xyz" or otherwise "https://xyz.com/image.png" or "base64..." |
* Remove deprecated CSS options Closes #5945. * Greenfield: Add brandColor to store APIs Closes #5946. * Migrate file IDs to URLs Closes #5953. * Greenfield: Add CSS and logo URL to store settings API Closes #5945. * Add migration test * Store and Server branding can reference file's via fileid:ID * Add PaymentSoundUrl to Store API --------- Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
For the branding properties, which refer to files (e.g. logo and CSS), we save the file ID and generate the URL when needed. Examples:
This makes it incompatible with the API, because the API does not offer file upload and setters for the file IDs.
The most practical way to fix this would be to switch from saving the file IDs to the full URL. This way the URLs could be read and set via the API without the need to also provide file upload via the API.
The text was updated successfully, but these errors were encountered: