通过可恢复上传返回404的大附件草稿更新

时间:2017-08-18 12:55:43

标签: gmail-api

我的草稿带有很大的附件。

  1. 使用gapi创建草稿。
  2. 更新此草稿添加一些大文件。
  3. 通过可恢复上传来上传草稿rawdata。
  4. 当我开始一个可恢复的会话时,它返回404。
  5. Array
    (
        [url] => https://www.googleapis.com/resumable/upload/gmail/v1/users/me/drafts/r3718017142990379914
        [method] => post
        [http_header] => Array
            (
                [0] => Authorization: Bearer ya29.****
                [1] => Content-type: application/json
                [2] => X-Upload-Content-Type: message/rfc822
            )
        [response] => HTTP/1.1 200 Tunnel established
    
    HTTP/1.1 404 Not Found
    X-GUploader-UploadID: AEnB2Up-CJW9XP4E84DqWjZhI_8-YFgWR47UNNfqGkmM2S5EBf3H5aGOcuwHzLd-4faoKAxd_qgaO5GInDUiJx6uua8JDwj4X0yLamxA--WySFB3ZZxw7YQ
    Vary: Origin
    Vary: X-Origin
    Content-Type: text/html; charset=UTF-8
    Content-Length: 9
    Date: Fri, 18 Aug 2017 12:48:24 GMT
    Server: UploadServer
    Alt-Svc: quic=":443"; ma=2592000; v="39,38,37,35"
    
    Not Found
        [res_header] => HTTP/1.1 200 Tunnel established
        [res_body] => HTTP/1.1 404 Not Found
    X-GUploader-UploadID: AEnB2Up-CJW9XP4E84DqWjZhI_8-YFgWR47UNNfqGkmM2S5EBf3H5aGOcuwHzLd-4faoKAxd_qgaO5GInDUiJx6uua8JDwj4X0yLamxA--WySFB3ZZxw7YQ
    Vary: Origin
    Vary: X-Origin
    Content-Type: text/html; charset=UTF-8
    Content-Length: 9
    Date: Fri, 18 Aug 2017 12:48:24 GMT
    Server: UploadServer
    Alt-Svc: quic=":443"; ma=2592000; v="39,38,37,35"
    
    Not Found
        [errno] => 0
        [error] =>
    )
    

    那么,草稿是否无法使用可恢复的上传进行编辑?

    如何编辑带有大附件的草稿?

1 个答案:

答案 0 :(得分:0)