gmail api - draft update with big Attachment by resumable upload return 404 -
my draft big attachment.
- create draft gapi.
- update draft add big file.
- upload draft rawdata resumable upload.
- 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
Post a Comment