Thanks a lot, Terry. The first example in the following link worked like a charm.
Now, I face another issue. Once all the selected files are uploaded, the list of uploaded files is shown in a seperate table. How shall I change that to a customized queue, just like we did with the list of selected files?