Sending more than one http request at once

I misread the indentation in OP’s code. @rapropos is right. It is due to loss of execution context as per this question.

Regarding our previous discussion, this is actually what I meant.
FileTransfer 2 and 4 do uploads in parallel.
FileTransfer 2 and 4 are both nested in FileTransfer 1.

fileTransfer1.upload(path, url, options, true).then(() => {
    fileTransfer2.upload(path, url, options, true).then(() => {
        fileTransfer3.upload(path, url, options, true).then(() => {
        });
    });
    fileTransfer4.upload(path, url, options, true).then(() => {
    });
});