Uploading additional metadata as part of file upload request to Google Cloud Storage

前端 未结 2 672
南笙
南笙 2020-12-20 06:58

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

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-20 07:56

    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

提交回复
热议问题