0

Suppose I want to write a tool which allows the user to copy a file from Dropbox to Google Drive but I don't want to download the file first to my server and then upload it to the drive. Is there a way where I can insert a file to drive by just providing a URL? I couldn't find anything in the documentation.

2 Answers 2

1

No. Having said that, it isn't necessary to create a file on your server. You can buffer the content in memory.

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

1 Comment

What if the file size is huge? If multiple users are using the service for huge files at the same time, the server might run out of memory.
0

I suppose you could send the access token to the client via a POST request. You'd have to encrypt it, of course, preferably SSL. Then the client could use the Drive SDK to upload the file directly from itself, completely bypassing your server.

1 Comment

That's the question, how to upload using URL because I can't find how to do that in Drive API documents.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.