简体   繁体   English

上载大小未知的文件

[英]Upload file with unknown size

How can I upload a file by Google Drive API If the length is unknown at the time of the request? 如果请求时长度未知,如何通过Google Drive API上传文件? I found this way https://developers.google.com/drive/manage-uploads#resumable but I can't understand how can I say to the server the stream is terminated. 我以这种方式https://developers.google.com/drive/manage-uploads#resumable找到了,但是我不明白如何向服务器说流已终止。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM