Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transfer files from dropbox/drive to Google cloud storage

We are planning to implement a feature to let customers browse their images in their own google drive or dropbox accounts (within our app), and select ones they wanna use in our app. Then, we will save these images into our Google cloud storage (GCS) place.

A simple approach is to use OAuth to download the customers' images from dropbox/drive to our local disk, then upload them to our GCS.

I am wondering if it is possible to make a direct transfer between dropbox/drive and GCS? GCS does provide transfer service for S3. You can also create a list of URL list, but each URL needs to be publicly accessible, which in our case does not seem possible.

Is there any better suggestion on how to implement this feature? Thanks

like image 799
Sen Avatar asked Jan 20 '17 02:01

Sen


People also ask

Can you sync Dropbox and Google Drive?

Sync Dropbox to Google Drive in One-clickUse the Add Cloud Drive option to add both Dropbox and Google Drive accounts to the InClowdz platform. Select the source account as Dropbox and target accounts like Google Drive. Step 3: After the authorization of accounts, click the Sync button to begin syncing.


1 Answers

Well you could stream the files so at least you wouldn't have to save them to local disk, but other than that I think your solution is the way to go.

It depends on your language how streaming works exactly, but basically you download the file and upload it to GCS right away without ever writing any bytes to local disk.

like image 105
Christiaan Avatar answered Sep 20 '22 06:09

Christiaan