-
Notifications
You must be signed in to change notification settings - Fork 2
feat: Support use blob to createComponent #20
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.
Hi @WaylonFtrack! Would you mind looking into getting the tests for file uploading to work (they are currently skipped), and add an additional test for blobs? Thanks!
Is the goal to add support for browsers not supporting the File constructor, or what is the motivation for the change? |
I was trying to upload canvas image from HTMLCanvasElement.toBlob. Since file constructor is additional wrapper, and the changes to directly support |
@@ -825,9 +829,13 @@ export class Session { | |||
let headers; | |||
|
|||
const updateOnProgressCallback = (oEvent) => { | |||
let progress = 0; |
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.
jsdom won't set request headers before request
, cause onProgress
never be called in test enviroment.
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.
I'm happy with this, but would like @lucaas to approve as well! Good job with the tests as well!
I see. In the review player, we also use |
No description provided.