简体   繁体   English

如何使用具有自己扩展名的驱动器api在Google驱动器中创建空白文件

[英]How to create blank file in google drive using drive api with our own extension

I want to create a blank file with .h extension and store in google drive. 我想创建一个扩展名为.h的空白文件,并将其存储在Google驱动器中。 Please let me know how can I create a blank file using api of google drive. 请让我知道如何使用Google Drive的API创建空白文件。

Not much of an answer but I would try creating the file with the following params: 答案不多,但我会尝试使用以下参数创建文件:

  1. title -> (filename).h 标题->(文件名).h
  2. mime-type -> 'text/plain' MIME类型->'文本/纯文本'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM