Get the version number of the document that will be updated if there is a conflict in the attachment and recursively call in case of a conflict,
$url = "http://couchdb/DATABASE/DOCID/ATTACHMENTNAME?rev=$rev"; curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt( $ch, CURLOPT_PUT, true ); curl_setopt( $ch, CURLOPT_URL, $url ); curl_exec( $ch );
user2254842 Jun 07 '13 at 12:13 2013-06-07 12:13
source share