Asynchronous upload using Javascript.