Google云端硬盘:上传时自动转换文件? [英] Google Drive: Automatically convert files on upload?
本文介绍了Google云端硬盘:上传时自动转换文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能将Google云端硬盘自动将上传的文件转换为原生格式?
我知道它适用于手动上传(即Google Drive可以自动转换您通过网站上传的文件),但我想避免必须手动上传每个文件。
我更愿意使用API,或者更好的方式是将文件转储到〜/ Google Drive
文件夹中。 convert = true 参数传递给
files.insert
。上传的文件将尝试转换为本地Google文档格式。 Is it possible to get Google Drive to automatically convert uploaded documents to the native format?
I know it works with manual upload (i.e. Google Drive can auto-convert files you upload via the website), but I want to avoid having to upload every file by hand.
I'd prefer to use the API, or better yet, dump the files in my ~/Google Drive
folder.
解决方案
Using the API, you can pass the convert=true
parameter to files.insert
. The uploaded file will attempt to be converted to a native Google Docs format.
这篇关于Google云端硬盘:上传时自动转换文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文