This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
(This bug was split out from <http://www.w3.org/Bugs/Public/show_bug.cgi?id=11796>.) 3) AJAX file uploads ----------------------- HTML5 should officially support AJAX based file uploads. Current workarounds exist like submiting form to an iframe but these are just hacks. What I am saying is that the XMLHttpRequest object should have a property like file which is an array and the IDs of the file upload input type can be stored in this array. When the submit method is called, the files are uploaded. Also, HTML5 should provide certain file upload related events - 4 events are suggested below a )onuploadbar - This event is raise each time a certain amount (bar) of percentage of file is uploaded. E.g. event is raised each time 10% of file is uploaded. b )onuploadcomplete - This event is raised when all files are uploaded successfully c )onfilecomplete - For multiple file uploads, this event is raised for each file that has been successfully uploaded d )onuploadfailed - This event is raised if any error occurs during upload causing the upload to fail
This is handled by XHR and FormData.
Not just FormData but also the ability to send a File object via XHR, and the xhr.upload object for upload progress events.
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document: http://dev.w3.org/html5/decision-policy/decision-policy.html Status: Accepted Change Description: no spec change Rationale: Already possible as per comment 1 and comment 2.
mass-move component to LC1