Thanks for your response, i'm doing Document.Create, then
Blob.Attach as follows:

    $answer = $session->newRequest("Blob.Attach")
        ->set('params', 'document', $filePath)
        ->set('params', 'xpath', $xPath)
        ->loadBlob($blobPathName, $mimeType)
        ->sendRequest();

it attach the blob but increases the version, do you mean i
must use Blob.Set instead of Blob.Attach? if so, i'm doing
as follows but it does not attach the blob:

$answer = $session->newRequest("Blob.Set")
        ->set('params', 'file', $blobPathName)
        ->set('params', 'xpath', $xPath)
        ->loadBlob($blobPathName, $mimeType)
        ->sendRequest();

Where:
$filePath ='/default-domain/workspaces/myworkspace/mydoc'; 
$blobPathName ='test.txt';
$xPath = 'file:content';
$mimeType ='';

What am I doing wrong?



---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/

Reply via email to