googleapis / google-api-php-client

A PHP client library for accessing Google APIs
http://googleapis.github.io/google-api-php-client/
Apache License 2.0
9.32k stars 3.52k forks source link

upload large file #2411

Closed danielezerosi closed 1 year ago

danielezerosi commented 1 year ago

I'm using the example file and it works. I created OAuth and enabled two users for tests. But file is loaded on the google drive of the user who is using the functionality. I'd like to send file always to one google drive (where i registered the project). Is it because project is still in test mode or i have to change some code ? and what do i have to change?

bshaffer commented 1 year ago

There may be a way to do this by sharing a drive folder with a service account (see this blog post for more information). This is not a question regarding this library, and is more a usage question regarding Google Drive, so I am closing the issue here. You may have better luck asking a question like this on Stack Overflow.