-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onarea-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.library-htmltype-enhancementA request for a change that isn't a bugA request for a change that isn't a bugweb-librariesIssues impacting dart:html, etc., librariesIssues impacting dart:html, etc., libraries
Description
This issue was originally filed by jirkadanek...@gmail.com
What steps will clearly show the issue / need for enhancement?
I have a file which I want to upload to a server. During the upload, I want to update a progressbar for the user.
What is the current output?
I need to resort to using an instance of HttpRequest directly, because neither HttpRequest.sendFormData nor HttpRequest.request allow me to register a listener for HttpRequest.upload.onProgress.
What would you like to see instead?
I suggest adding an onUploadProgress parameter to functions sendFormData and request. Then, the library could do something like
if (onUploadProgress != null) {
xhr.upload.onProgress.listen(onUploadProgress);
}
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onarea-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.library-htmltype-enhancementA request for a change that isn't a bugA request for a change that isn't a bugweb-librariesIssues impacting dart:html, etc., librariesIssues impacting dart:html, etc., libraries