All this works perfectly fine and on the server I can see the metadata and also the uploaded files in PHP.
But now I need something different. I want to send the data first to the server and then then file upload. So is there some way I can send the metadata first and then trigger the file upload submit?
I am doing this is that just in case the client upload large files and the upload fails I may not get the important metadata.