Skip to content

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

Merged
merged 8 commits into from
Aug 28, 2022
Merged

Conversation

zetashift
Copy link
Contributor

I'm unsure about a lot of things about the code I wrote, for example moving the name to the constructor part. And should FileOptions be in it's separate file? Also unsure about the type of bits.

Anyhow let me know what you think then I'll gladly change it.

Copy link
Member

@armanbilge armanbilge left a 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.

@armanbilge armanbilge linked an issue Aug 21, 2022 that may be closed by this pull request
@zetashift
Copy link
Contributor Author

zetashift commented Aug 22, 2022

I think I did an oopsie with Git

edit: hopefully a squash can suffice :P

Copy link
Member

@armanbilge armanbilge left a 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!

@armanbilge armanbilge changed the title Fixup File API for #601 Fixup Blob and File APIs Aug 22, 2022
@zetashift
Copy link
Contributor Author

Anytime!
I have Image half finished I think, but this week I'm spending more time in the learning-backend-development realm, so I hopefully I get that PR done next week.

@armanbilge armanbilge merged commit a67319e into scala-js:main Aug 28, 2022
@zetashift zetashift deleted the fix/file-api#601 branch January 27, 2023 20:53
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.

Fix up File API
2 participants