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
process ('progress' and 'load'). I'd love to see support for this baked in, and while it doesn't have to be this exact code, this is at least a start."

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

Thomas S. Sha

YUI Contributor

Posted: 10/5/11
  • status changed from new to accepted

Thomas S. Sha

YUI Contributor

Posted: 11/9/11
  • milestone changed to 3.5.0

Thomas S. Sha

YUI Contributor

Posted: 11/9/11
  • estimated changed from 0 to 2
  • remaining changed from 0 to 2
  • sprint changed to sprint 1

Thomas S. Sha

YUI Contributor

Posted: 12/8/11
  • completed changed from 0 to 2
  • remaining changed from 2 to 0
  • status changed from accepted to checkedin

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.

Jenny Donnelly

YUI Developer

Posted: 05/10/12
  • resolution changed to fixed
  • status changed from checkedin to closed

checkedin -> closed