Ticket #2531274 (closed enhancement)
Reporter Ryan Grove |
Opened: 10/3/11 Last modified: 05/10/12 Status: closed Type: enhancement Resolution: fixed |
Owner Thomas S. Sha |
Target Release: 3.5.0 Priority: P3 (normal) |
|---|---|---|---|
| Summary: | [GH Pull Request #33] Adding support for FormData object passed in as IO "data" to do XHR uploads | ||
| Description: | Pull request from GitHub user ghinch: https://github.com/yui/yui3/pull/33 "I wanted to support doing XHR uploading with the new HTML 5 File API in Y.io, and these changes were the minimal amount of work needed for me to do that, as well as publishing useful events in that CLA is signed, so pull at will: http://yuilibrary.com/forum/memberlist.php?mode=viewprofile&u=4156 |
||
| Type: | enhancement | Observed in Version: | development master |
| Component: | IO | Severity: | S3 (normal) |
| Assigned To: | Thomas S. Sha | Target Release: | 3.5.0 |
| Location: | Library Code | Priority: | P3 (normal) |
| Tags: | Relates To: | ||
| Browsers: | N/A | ||
| URL: | https://github.com/yui/yui3/pull/33 | ||
| Test Information: | |||
Change History
|
Posted: 10/5/11
|
|
Posted: 11/9/11
|
|
Posted: 11/9/11
|
|
Posted: 12/8/11
|
|
Posted: 05/10/12
checkedin -> closed |
XMLHttpRequest 2 file upload now available. This update introduces the io:progress event, exposing the interactive data during a file upload transaction. This event can be subscribed for each transaction in the configuration object, or as a global event.
The load and error events are mapped to io:complete and io:failure, respectively.
For io:progress, the event object is passed instead of the XHR transport, as second argument, giving access to event.lengthComputable, event.loaded, event.type, event.total.