-
Notifications
You must be signed in to change notification settings - Fork 161
Fixup Blob
and File
APIs
#721
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
Conversation
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.
Ok ... so looks like this one is going to be a bit of a rabbit hole 😅
The official specification is here:
https://www.w3.org/TR/FileAPI/#dfn-file
There it defines options
as a FilePropertyBag
which extends a BlobPropertyBag
.
It also defines a BlobPart
for the fileBits
.
791dfcf
to
335d828
Compare
I think I did an oopsie with Git edit: hopefully a squash can suffice :P |
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.
Ok, I think that's everything. Good work on this, nice fix up of these APIs!
Anytime! |
I'm unsure about a lot of things about the code I wrote, for example moving the
name
to the constructor part. And shouldFileOptions
be in it's separate file? Also unsure about the type ofbits
.Anyhow let me know what you think then I'll gladly change it.