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 the iframe.onload
event to trigger the next form in the list.
Additional notes:
form.target
attribute must be equal to the iframe.name
attribute. iframe.id
will not work; It causes a pop-up window in IE6 and FF3.5.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With