0

I want to upload a file to google drive. For that, I am using this tutorial and downloaded it from here, but I am getting this error message :

Fatal error: Uncaught exception 'Exception' with message 'Google PHP API Client requires the CURL PHP extension' in C:\wamp\www\upload_google_drive\Google-Drive-PHP-API\google-api-php-client\src\Google_Client.php on line 21

My php curl is enabled and I have Client Id and Client Secret Key.

1
  • a solution. Hope it helps! Commented Aug 17, 2015 at 15:20

1 Answer 1

1

That tutorial is not up to date, there were some changes in the API. Try the simple media uploader from the Google Drive API page and go from there. If there's any specific function you want to do just feel free to ask!

https://developers.google.com/drive/web/quickstart/php

Apparently they changed the quickstart for it to list just the items, but just check the upload or insert part in the REST API and you're good to go.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.