-
Notifications
You must be signed in to change notification settings - Fork 391
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
fix(frontend): bytes decode when load file finished #338
Conversation
@jhump would you mind eyeballing this? I'm not very familiar with the frontend code. |
@dragonsinth Is there any progress? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GoldenSheep402 I pushed you a commit that I think should handle the ArrayBuffer case and avoid the need to call isBase64
... could you test this out and let me know if it works?
Problem
When use bytes to take the data, if I didn't click on the input, it will not decode the base64 string.
Fix
I added a Base64 decode step once the file upload is complete. Additionally, when the input field is manually focused and modified, the decode process will be triggered again.