ERROR: 203 "Error downloading https://docs.google.com/feeds/upload/create-session/default/private/full/document%3A1c9OVAZlhvbbvIN547bC15N1InbijIwQ6S7GV9sC1cS0
- server replied: Not Found" , statusCode= 404
It seems that I cannot create a session using edit-resumable-link.
Can you look at this?
Best regards,
Igor Grivko
URL QUrl( " https://docs.google.com/feeds/upload/create-session/default/private/full/document%3A1ZyBLRkQVtm3f7wroLmXlCWMbC522LsVb1twY5Tmu5ls " )
Headers:
"GData-Version" "3.0"
"Authorization" "OAuth ya29.AHES6ZTNaUXFNziw9wdqV2UpcLdSQz07klNraaQuv0nq9FCu5B9Uhf4"
"If-Match" "*"
"Content-Type" "application/msword"
"Content-Length" "11776"
"X-Upload-Content-Type" "application/msword"
"X-Upload-Content-Length" "11776"
Similar to initiating a resumable upload session, you can utilize the resumable
upload protocol to replace an existing document's content. To start a resumable
update request, send an HTTP PUT
to the entry link with rel
attribute resumable-edit-media
. Each document or file entry that the currently
authorized user has permission to update will contain a resumable-edit-media
link.
<link
rel
=
" http://schemas.google.com/g/2005#resumable-edit-media
"
type
=
"application/atom+xml"
href
=
" https://docs.google.com/feeds/upload/create-session/default/private/full/document%3A12345
"
/>
Here is the initial request:
PUT https
:
// docs.google.com/feeds/upload/create-session/default/private/full/document%3A12345
Authorization
:
<
your authorization header here
>
If
-
Match
:
<
ETag
or
*
here
>
Content
-
Length
:
1000
Content
-
Type
:
text
/
plain
X
-
Upload
-
Content
-
Length
:
1000
X
-
Upload
-
Content
-
Type
:
text
/
plain
<
empty body
>
""""""""""""""""""""""""
URL QUrl( " https://docs.google.com/feeds/upload/create-session/default/private/full/document%3A1ZyBLRkQVtm3f7wroLmXlCWMbC522LsVb1twY5Tmu5ls " )
Headers:
"GData-Version" "3.0"
"Authorization" "OAuth ya29.AHES6ZRVt37JDAC60jgWPAYKi5csK2eJZxFzbn5KupGOmYzogzloQbI"
"If-Match" "*"
"X-Upload-Content-Type" "application/msword"
"X-Upload-Content-Length" "11776"
DATA: ""
void DocsDataManager::replyFinished(QNetworkReply*)
Before handleReply
uploadFileFinished
Reply with the error!!!!!
ERROR: 203 "Error downloading https://docs.google.com/feeds/upload/create-session/default/private/full/document%3A1ZyBLRkQVtm3f7wroLmXlCWMbC522LsVb1twY5Tmu5ls - server replied: Not Found" , statusCode= 404
#######################REPLY = ""
#######################END REPLY
POST
[
resumable
-
create
-
media link
]
Content
-
Length
:
0
X
-
Upload
-
Content
-
Type
:
application
/
pdf
X
-
Upload
-
Content
-
Length
:
1073741824
HTTP
/
1.1
200
OK
Location
:
[
next
location
]
...
PUT
[
next
location
]
Content
-
Length
:
524288
Content
-
Type
:
application
/
pdf
Content
-
Range
:
bytes
0
-
524287
/
1073741824
[
bytes
0
-
524287
]
HTTP
/
1.1
308
Resume
Incomplete
Range
:
0
-
524287
Location
:
[
next
location
]
...
resumable-create-media
link.+++++++++++++++uploadFile, id = +++ "1ZyBLRkQVtm3f7wroLmXlCWMbC522LsVb1twY5Tmu5ls"
resumable_edit_media " https://docs.google.com/feeds/upload/create-session/default/private/full/document%3A1ZyBLRkQVtm3f7wroLmXlCWMbC522LsVb1twY5Tmu5ls "
QString FileTools::getContentTypeByExtension(const QString&) "doc"
+++contentType = "application/msword"
void DocsDataManager::replyFinished(QNetworkReply*)
Before handleReply
uploadFileFinished
File to upload!!! "/home/grivna/GoogleDocs/ igor.grivko_gmail.com/Created_in_Google-2.doc " location " https://docs.google.com/feeds/upload/create-session/default/private/full/document%253A1ZyBLRkQVtm3f7wroLmXlCWMbC522LsVb1twY5Tmu5ls?upload_id=AEnB2UqKKEyuU-x_0za7GFEf6GjmOwAJGwGggtvta_MdscsAw9G_mReRvTL1W4og_frdFuFFNTZlcUrSh-t3IPbWWntdbNe_tg "
QString FileTools::getContentTypeByExtension(const QString&) "doc"
Headers:
"GData-Version" "3.0"
"Authorization" "OAuth XXXXXXXXXXXXXXXXXXXXXXXXXXXX"
"Content-Type" "application/msword"
"Content-Length" "12800"
"Content-Range" "bytes 0-12799/12800"
DATA: "ÐÏ à¡± á
void DocsDataManager::replyFinished(QNetworkReply*)
Before handleReply
uploadFileFinished
Reply with the error!!!!!
ERROR: 301 "Error downloading https://docs.google.com/feeds/upload/create-session/default/private/full/document%253A1ZyBLRkQVtm3f7wroLmXlCWMbC522LsVb1twY5Tmu5ls?upload_id=AEnB2UqKKEyuU-x_0za7GFEf6GjmOwAJGwGggtvta_MdscsAw9G_mReRvTL1W4og_frdFuFFNTZlcUrSh-t3IPbWWntdbNe_tg - server replied: Not Implemented" , statusCode= 501
#######################REPLY = "<errors xmlns=' http://schemas.google.com/g/2005 '><error><domain>GData</domain><code>noPostConcurrency</code><internalReason>POST method does not support concurrency</internalReason></error></errors>"
#######################END REPLY