如何使用Google Drive API将文件直接从服务器上传到Google云端硬盘? [英] How to upload file directly from a server to Google Drive using the Google Drive API?

查看:1550
本文介绍了如何使用Google Drive API将文件直接从服务器上传到Google云端硬盘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我想编写一个工具,允许用户将文件从Dropbox复制到Google Drive,但我不想先将文件下载到我的服务器,然后将其上传到驱动器。有没有一种方法可以通过提供URL来插入文件来驱动?我找不到任何文件。

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.

推荐答案

没有。
话虽如此,没有必要在您的服务器上创建一个文件。您可以将内容缓冲在内存中。

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

这篇关于如何使用Google Drive API将文件直接从服务器上传到Google云端硬盘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆