google-drive-sdk-api-php-insert-file-parent-example
google-drive-sdk-api-php-insert-file-parent-example copied to clipboard
Uploading files to Same drive without considering current logged in google account
Hi Miro, i have used your example it is useful but i have found one issue that is "it uploads files to drive which is used first time". I have elaborated below the issue with scenario.
Step 1 : I have authorized your app for account [email protected] and then upload the file under Test folder.File was uploaded successfully.
Step 2 : Then I Logged out from [email protected] google account.
Step 3 : Then immediately i want to upload another file but this time to different google account , As using your app it ask for authorization and this time i have logged in with [email protected] account and then fill the form and submit it but file is not uploaded in [email protected] drive but uploaded in [email protected] account's drive.
NOTE: And some time it gives "Unexpected error" from functions.php > getCredentials() method >as there is $credentialsArray
without $credentialsArray['refresh_token']
.
I have tried a lot but could not find any solution. Thank you.
Hello!
Sorry for the late response. Have you found a solution for your problems with the example yet? I haven't been working with PHP of Google Drive for years now and I've stopped actively supoorting this example.
Although I'd be glad to look in go a PR if you have a fix for the issues.
Regards Miro
Hi Miro,
right now i have some urgent tasks to complete.So i will work on this example in some time. Once i have some thing to show you i will make a PR to you.
Regards