2

I am trying to upload a file to Google Drive using Drive SDK.

I wanted to know if there is an API method to check if the user's drive has enough capacity to hold the file. If yes, can you please point me to where I should search, if not what is the best way to handle this?

P.S.: Please assume that I know the size of the file to upload.

4

1 回答 1

7

About.get()会告诉你用户的配额和使用情况。您可以根据此信息计算用户的可用空间。

于 2013-11-15T00:03:34.040 回答