Is there a way to queue file uploads without resorting to Flash or Silverlight, just with cleverly used forms and JavaScript? Note that the upload should be executed asynchronously.
By “queuing” uploads I mean that if the user tries to upload multiple files, they should not be transferred simultaneously, but rather one at a time, in a single HTTP connection.
I don’t believe it’s possible to do this on a single HTTP connection, due to limitations of the spec.
However, you may get almost the same behaviour by placing the
<input>fields in separate forms (be it with HTML or JavaScript) and submitting them in order.Place their targets on an
<iframe>and use theiframe.onloadevent to trigger the next form in the list.Additional notes:
form.targetattribute must be equal to theiframe.nameattribute.iframe.idwill not work; It causes a pop-up window in IE6 and FF3.5.