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

.webp Files Corrupt in Backup/Restore Due to Binary Handling #757

Open
sc5587 opened this issue Feb 11, 2025 · 0 comments
Open

.webp Files Corrupt in Backup/Restore Due to Binary Handling #757

sc5587 opened this issue Feb 11, 2025 · 0 comments

Comments

@sc5587
Copy link

sc5587 commented Feb 11, 2025

When backing up and restoring .webp files (both locally and via Google Drive), the images become corrupted. It seems the backup code is treating binary image data as text (using UTF-8 by default) instead of using binary mode, and the Google Drive upload doesn't explicitly set the MIME type to "image/webp". This results in the file bytes being altered and the images getting corrupted.

Could we please update the backup/restore routines to handle .webp files in proper binary mode (using Buffers or similar) and ensure the correct MIME type is used during uploads? Thank you for looking into this.

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