Code Monkey home page Code Monkey logo

google-drive-direct-remote-upload's Introduction

Google Drive - Direct Remote Upload

Directly upload files from the web to Google Drive without saving them completely on the server before. This is useful to upload files, which are bigger than the storage available on the server.

Sorry, the code isn't really organized and clear, it was only for testing. Maby I'll clean it later...

How to use it:

  • Rename "credentials/oauth-credentials_EXAMPLE.json" to "credentials/oauth-credentials.json"
  • Download your oauth2 credentials in the google developer console and copy it in it
  • Call the "index.php" from the console ("php index.php")
  • Follow the messages in the console window
  • Create pull requests to help with the development ;)

google-drive-direct-remote-upload's People

Contributors

j05hi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

google-drive-direct-remote-upload's Issues

readFileChunk has a bug

Change line 29 to $chunk = fread($handle, min($chunkSize-$byteCount,8192)); can fix the problem while uploading big files.

,

.

.

.

composer lock

please add a composer lock file to deploy it on heroku

hi , may i know this php still work ?

hi , may i know this php still work ? i always get error

This application must be run on the command line. You need to modify it a bit to run over the browser :)Open the following link in your browser: https://accounts.google.com/o/oauth2/auth?response_type=code&access_type=offline&client_id=87546652136-hd50li2njm2909ik09oj0nodl0f77s58.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fh-ds.herokuapp.com%2Findex.php&state&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&approval_prompt=force Enter verification code: An error occurred: Invalid code

gphotos

Thank you
can we do the same thing for google photo?

Heroku issue

HI can you please test this repo on heroku if you have time,

i have deployed it on heroku and opened it, a blank page is showing & nothing else,

smloadr

how can i follow development on smloafdr

I got it to work, BUT... xD

I unterstand you worked on it a while back but I figured out ONE thing that is funny about this script!
It's currently useless... it uploads a file "Test File.zip" from thinkbroadband.com to my Google Drive.
So test mode is activated. All you need to do is make it so one can enter a URL into the script somehow...

If you change the url 20 MB file can be uploaded, 100 MB test file from Hetzner can also be downloaded. I tried some other file links but those didn't work. I will get back if something changes or if I find out sth else...

But: Very nice demo script! Love it.

PHP Warning

When issue php index.php I get

require_once(/home/justinechacko/Web/google-drive-direct-remote-upload/vendor/autoload.php): failed to open stream: No such file or directory in /home/justinechacko/Web/google-drive-direct-remote-upload/index.php on line 9
PHP Fatal error:  require_once(): Failed opening required '/home/justinechacko/Web/google-drive-direct-remote-upload/vendor/autoload.php' (include_path='.:/usr/share/php') in /home/justinechacko/Web/google-drive-direct-remote-upload/index.php on line 9

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.