Upload progress listener not fired (Google drive API)

前端 未结 1 592
梦如初夏
梦如初夏 2020-12-18 06:09

I want to show progress by percent of an uploading file using Google drive API.

My menthod has successful upload a file before but It can\'t see upload progress.

相关标签:
1条回答
  • 2020-12-18 06:24

    To get progress, you must use uploader.setDirectUploadEnabled(false); (instead of true) and uploader.setChunkSize(MediaHttpUploader.MINIMUM_CHUNK_SIZE); or any value which must be the multiply of MediaHttpUploader.MINIMUM_CHUNK_SIZE, else it will cause error.

    0 讨论(0)
提交回复
热议问题