Opened 8 years ago

Last modified 5 years ago

#18386 assigned defect

No way to set progress callbacks for xhr.upload when using dojo/request/xhr

Reported by: ddumont Owned by: dylan
Priority: undecided Milestone: 1.14
Component: IO Version: 1.10.2
Keywords: Cc:
Blocked By: Blocking:

Description mentioned that this support was in dojo/request/xhr but I took a look at the code today and found no way to add a progress callback to the xhr.upload object.

Change History (2)

comment:1 Changed 7 years ago by dylan

Milestone: tbd1.12
Owner: changed from Bryan Forbes to dylan
Status: newassigned

I will look into this for 1.12, though would of course review a pull request if one is provided sooner.

Basic workflow would be:

  • Hook it up to the separate upload handler
  • See the response handler, its third argument, has an xhr object (backcompat handler), from there you can get the xhr and measure its progress.
  • request.get(url, options, true) -> returns a deferred instead of a promise when the third param is set to true

comment:2 Changed 5 years ago by dylan

Milestone: 1.131.14
Note: See TracTickets for help on using tickets.