我使用 WinHTTP 插入以下参数。文件成功上传,但标题为无标题文件。
POST /upload/drive/v2/files?access_token=918230812390812038389 HTTP/1.1
Host: www.googleapis.com
Content-Type: multipart/form-data; boundary="boundary"
Content-Length: 20176
--boundary
Content-Type: application/json; charset=UTF-8
{
"title": "test2.pdf"
}
--boundary
Content-Type: application/pdf
PDF CONTENTS
--boundary--