Do you have an attachment called 'sample.pdf' in addition to one
called 'attachment'?

B.

On 23 January 2013 22:51, Nestor Urquiza <[email protected]> wrote:
> Hellow guys,
>
> Can anyone help here please. I believe I am not deleting the
> attachment correctly?
>
> 1. I delete a document as per documentation:
> $ curl -k -X DELETE
> "https://user:[email protected]:6984/db/sample.pdf/attachment/?rev=1-adb7b6f2e32d73758dfa16966c1caef9";
> {"ok":true,"id":"sample.pdf","rev":"2-87988b99af60e2f7cb9022b65b7565d5"}
>
> 2. I check for the attachment and indeed it is not there:
> $ curl -k -X GET
> "https://user:[email protected]:6984/db/sample.pdf/attachment";
> {"error":"not_found","reason":"Document is missing attachment"}
>
> 3. Yet from futon (or the equivalent below) the attachment is downloaded?
> $ curl -O -k -X GET
> "https://user:[email protected]:6984/db/sample.pdf/sample.pdf";
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time  
> Current
>                                  Dload  Upload   Total   Spent    Left  Speed
> 100  163k  100  163k    0     0  1707k      0 --:--:-- --:--:-- --:--:-- 1817k
>
> Thanks,
> -Nestor

Reply via email to