-
-
Notifications
You must be signed in to change notification settings - Fork 596
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: creating a Parse.File with base64 string fails for some file types #1467
Conversation
Thanks for opening this pull request!
|
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.
Tests failing, please request another review from @parse-community/js-sdk-review
when this is ready.
Tests are failing because you're using node |
Can you adapt the code to pass? We won't change the node engine version at this point. Node 12 and 14 are still under LTS. |
Done. |
Parse.File
with base64 string fails for some file types
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.
Tests still fail, could you take a look? And please let me know if the new PR title is correct.
Sorry for taking so long, I had some work to do. |
I changed the PR title because the previous one was difficult to read. It seems you changed it back. What's incorrect or missing for the title:
|
Codecov Report
@@ Coverage Diff @@
## alpha #1467 +/- ##
=======================================
Coverage 99.94% 99.94%
=======================================
Files 61 61
Lines 5948 5949 +1
Branches 1354 1357 +3
=======================================
+ Hits 5945 5946 +1
Misses 3 3
Continue to review full report at Codecov.
|
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.
Looks good to me! Thanks for this fix, let's just wait for the CI to pass.
@rubenatorio Do you want to do a final review before we merge? |
## [3.4.3-alpha.1](3.4.2...3.4.3-alpha.1) (2022-05-02) ### Bug Fixes * creating a Parse.File with base64 string fails for some file types ([#1467](#1467)) ([c07d6c9](c07d6c9))
🎉 This change has been released in version 3.4.3-alpha.1 |
🎉 This change has been released in version 3.4.3-beta.1 |
🎉 This change has been released in version 3.4.3 |
It seems there is still issue with I am generating data URL from canvas-
Upon running this script, the frontend freezes for a couple of minutes and then fails. The exact same script was working with version I also tried the following script to extract base64 string. No success.
|
Could you open a new issue? |
this fix is not working when i upload a video and convert the video to base64. The file size is around 17mb, do you suggest any other solution? |
See #1532 |
## [3.4.3](parse-community/Parse-SDK-JS@3.4.2...3.4.3) (2022-07-02) ### Bug Fixes * creating a Parse.File with base64 string fails for some file types ([parse-community#1467](parse-community#1467)) ([c07d6c9](parse-community@c07d6c9)) * invalid name for `Parse.Role` throws incorrect error ([parse-community#1481](parse-community#1481)) ([8326a6f](parse-community@8326a6f))
New Pull Request Checklist
Issue Description
Related issue: #1466
Approach
Reworked logic for base64 formatting in ParseFile.js.
TODOs before merging