I tried a lot to get this thing done but all in vain.
Here is complete documentation
Link to JavaScript code base
If I try Google\'s online tool to
I struggled with this one without finding a good resource, so it was all trial and error.
The answer appears to be putting the additional metadata in a metadata key:
var metadata1 = { metadata: fileData.metadata, 'name': fileData.name, 'mimeType': contentType };
Sorta meta