Google云端硬盘API插入带有Untitled名称的新文件 [英] Google Drive API insert new file with Untitled name

查看:318
本文介绍了Google云端硬盘API插入带有Untitled名称的新文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在c ++和Qt上写了我自己的GDrive应用程序;我有问题,插入新文件到GDrive。我所有上传的文件名称都为Untitled。如何创建发送请求以发送我的文件和有扩展名的有效名称?

I write my own application for GDrive on c++ and Qt; And I got problem with inserting new file to GDrive. All my uploaded files got name "Untitled". How I should create post request to send my file and valid name with extension for it?

推荐答案

使用Drive API时,它们都在 https://developers.google.com/drive/manage -uploads

There are multiple ways to upload files with the Drive API, they are all described at https://developers.google.com/drive/manage-uploads.

文件标题必须在资源表示的 title 字段中提供: https://developers.google.com/drive/v2/reference/files#resource

The file title must be provided in the title field of the resource representation: https://developers.google.com/drive/v2/reference/files#resource

这篇关于Google云端硬盘API插入带有Untitled名称的新文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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