Hi, since i got the version 5.4.2 i can't use blob.get of php automation client to open files, it shows me 'Error Server is not set', is there another way?
maybe what was posted on this forum would solve your problem: http://forum.nuxeo.com/t/5537/
Quote: "Hello Thanks a lot for your response, i had a mistake configuration on the remote server, after enable the "allow_url_fopen" directive in the php.ini file now it works fine"
Hi,
Hi, i'm using the php automatin client with version 5.4.2, my example:
include ('../NuxeoAutomationClient/NuxeoAutomationAPI.php'); $path="/path/..."; //valid path $client = new PhpAutomationClient('http://ip:8080/nuxeo/site/automation'); $session = $client->GetSession('Administrator','Administrator'); $answer = $session->NewRequest("Blob.Get")->Set('input', 'doc: ' . $path)->SendRequest(); if (!isset($answer) OR $answer == false) echo $answer.' is not set'; else{ header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename='.$filename.'.pdf'); readfile('tempstream'); }
It returns me "Error Server is not set"