Skip to content

Allow any Blob to be uploaded #837

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

Merged
merged 1 commit into from
Jun 13, 2019
Merged

Conversation

LinusU
Copy link
Contributor

@LinusU LinusU commented Jun 13, 2019

File is a subclass of Blob and thus this will still accept any File as before.

The benefit of also allowing Blob is that those are user-creatable, and you can get them from a Canvas if you are e.g. resizing images in the browser before uploading them.

@codecov
Copy link

codecov bot commented Jun 13, 2019

Codecov Report

Merging #837 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #837   +/-   ##
=======================================
  Coverage   92.07%   92.07%           
=======================================
  Files          54       54           
  Lines        4933     4933           
  Branches     1097     1097           
=======================================
  Hits         4542     4542           
  Misses        391      391
Impacted Files Coverage Δ
src/ParseFile.js 97.51% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9365179...4af4b2f. Read the comment docs.

`File` is a subclass of `Blob` and thus this will still accept any `File` as before.

The benefit of also allowing `Blob` is that those are user-creatable, and you can get them from a `Canvas` if you are e.g. resizing images in the browser before uploading them.
Copy link
Contributor

@acinader acinader left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@acinader acinader merged commit 13d5c68 into parse-community:master Jun 13, 2019
@LinusU
Copy link
Contributor Author

LinusU commented Jun 13, 2019

Thanks for the quick merge 🙌

@LinusU LinusU deleted the patch-1 branch June 13, 2019 16:34
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

Successfully merging this pull request may close these issues.

2 participants