gmail api - draft update with big Attachment by resumable upload return 404 -


my draft big attachment.

  1. create draft gapi.
  2. update draft add big file.
  3. upload draft rawdata resumable upload.
  4. when start resumable session, return 404.
 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] => ) 

so, draft can not edited using resumable upload?

how can edit draft large attachment?

when update draft, must used put.

like: put https://www.googleapis.com/upload/gmail/v1/users/me/drafts/r6052444812129220058


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -