为什么Google云端存储图像上传响应元数据不起作用?

时间:2018-04-19 14:49:17

标签: google-cloud-platform google-cloud-storage google-developers-console

使用Google's JSON REST APIs Uploading objects guide将我的图片上传到Google云端存储后,我收到了此回复,但这些链接未显示我上传的文件。

如何解决此问题?

我在桶中上传图片后发现了一些奇怪的东西。图像具有以下类型:

  

图像/ JPEG;边界= ------------------------ 534b0c4750bfcf64

boundary= -------534b0c4750bfcf64是什么意思?

Example of my files

响应:

{  
   "kind":"storage#object",
   "id":"testedbucketwow/unnamed.png/1524148551179777",
   "selfLink":"https://www.googleapis.com/storage/v1/b/testedbucketwow/o/unnamed.png",
   "name":"unnamed.png",
   "bucket":"testedbucketwow",
   "generation":"1524148551179777",
   "metageneration":"1",
   "contentType":"image/jpeg; boundary=------------------------209e51412cc36b07",
   "timeCreated":"2018-04-19T14:35:51.176Z",
   "updated":"2018-04-19T14:35:51.176Z",
   "storageClass":"MULTI_REGIONAL",
   "timeStorageClassUpdated":"2018-04-19T14:35:51.176Z",
   "size":"49651",
   "md5Hash":"x2gvBrft3kW2LVvHIgcACw==",
   "mediaLink":"https://www.googleapis.com/download/storage/v1/b/testedbucketwow/o/unnamed.png?generation=1524148551179777&alt=media",
   "crc32c":"qSwL3g==",
   "etag":"CIG86efHxtoCEAE="
}

0 个答案:

没有答案