google-drive-sdk-api-php-insert-file-parent-example icon indicating copy to clipboard operation
google-drive-sdk-api-php-insert-file-parent-example copied to clipboard

Uploading files to Same drive without considering current logged in google account

Open Knight017 opened this issue 7 years ago • 2 comments

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.

Knight017 avatar Jan 17 '17 08:01 Knight017