upload file into google drive using java api

前端 未结 3 878
后悔当初
后悔当初 2021-01-16 17:50
DocsService client = new DocsService(\"service name\");
client.setUserCredentials(username,password);
File file = new File(filename);
URL url = new URL(\"https://doc         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-16 18:27

    As far as I know (its been a few month since I looked) this is not (yet?) supported by the google drive API. As a workaround consider installing the native google drive share and write the files you want to upload into the locally mapped shared folder. Then its google drives problem to handle the upload.

提交回复
热议问题