02-12-2013 05:51 AM
Hi There,
We're using PHP Automation Client to upload documents on Nuxeo repository. Everything works fine except when we upload an Office 2010 file (having extensions such as .docx), when trying to open the uploaded file from Nuxeo, we receive error that the file is corrupted.
Here's a snippet of the code for a docx type of file...
$answer = $session->newRequest('Blob.Attach') ->set('params', 'document', $doc_id) ->set('params', 'xpath', 'file:content') ->loadBlob('/path/to/file/filename.docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document') // file location, mime type ->sendRequest();
Any help would be much appreciated.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.