When I upload a new revision of a document (using the odt format), it is removed from all shared folders.
I'm using OAuth 1 and a ruby client, but it also occurs in the OAuth playground (https://developers.google.com/oauthplayground/)
The flow:
(Create a text document and put it in a shared folder)
Get the document entry: GET /feeds/default/private/full/<docid>.
It should have a 'shared' label and a link to the folder in #parent
Get the upload link for the document (link @rel~=#resumable-edit-media):
PUT https://docs.google.com/feeds/upload/create-session/default/private/full/document%3A<docid>
As I'm not changing any document meta, the body of this request is empty
Upload document body to response.location
The resulting document is not in the shared folder, does not have a shared label or a #parent link.
Is this by design? Any workarounds?
I noticed this using the Java API, it didn't happen until a few days ago. It looks like a regression but since the documents list api is deprecated, I fear it might not be fixed :(
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With