I need the feature to be able to upload image files in background without making the user wait till all the files are uploaded. I want to use a web worker to do so but don't know how will the formdata of the images to be uploaded will be sent to the worker.js. 
While the upload takes place the user should also be able to move around the we page and simultaneously the upload is also taking place. How to do this? I understand the basic of how the worker work and how to communicate with worker but I don't know how to send data to the worker for some work to be done in background.
 
     
    