简体   繁体   English

如何使用 Google Cloud Storage JSON API 获取可恢复上传的上传进度信息?

[英]How to get upload progress informations for a resumable-upload with Google Cloud Storage JSON API?

I'm using JSON resumable upload in order to upload a file to a cloud storage.我正在使用JSON 可恢复上传来将文件上传到云存储。 But there is no information about "how to retrieve the upload progress state", in the documentation .但是文档中没有关于“如何检索上传进度状态”的信息

In the browser it just says "pending" until the file is uploaded.在浏览器中,它只是说“待定”,直到文件上传。 Any idea how to get progress informations from the client or server?知道如何从客户端或服务器获取进度信息吗?

The documentation talks about using the multiple chunks upload mechanism if you want to show progress.如果您想显示进度,该文档讨论了使用多块上传机制。 That's what you need.这就是你所需要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Java 和 JS 可恢复上传到 Google Cloud Storage - Resumable upload to Google Cloud Storage using Java and JS Google Storage API - 可恢复上传,AJAX,CORS错误 - Google Storage API - Resumable Upload, AJAX, CORS Error 云存储可恢复上传访问令牌 - Cloud Storage resumable upload access token 如何使用uploadType=resumable将文件上传到google drive api - How to upload a file to google drive api with uploadType=resumable Google Cloud Platform Storage JSON API上传会中断音频文件。 怎么修? - Google Cloud Platform Storage JSON API upload breaks audio files..?! How to fix? Google云端存储上传请求有时会起作用,有时却不会 - 可以恢复? - Google Cloud Storage upload request sometimes works, sometimes doesn't - make resumable? 使用可恢复上传 url 在 React js 中上传文件在谷歌云存储中失败,抛出 CORS 策略错误 - Uploading file in react js with resumable upload url is failing in google cloud storage, throwing CORS policy error Google Cloud Storage 不强一致,在可恢复上传完成后 500 毫秒返回 404 - Google Cloud Storage not strongly consistent, returning 404 until 500ms after a resumable upload completes 如何获取谷歌云存储实时文件上传反馈? - how to get google cloud storage real time file upload feedback? 跟踪通过js将文件上传到Google云存储的进度? - Track progress of file upload to google cloud storage via js?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM