PHP Automation Client office 2010 file issue
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.