I want to upload an image file to alfresco using cmis api using PHP. I can create a simple text document in alfresco using the following code
$obs = $client->createDocument($myfolder->id, $repo_new_file,$prop, "testssss", "text/plain");
I tried the following image upload code
$obs = $client->createDocument($myfolder->id, $repo_new_file,$prop, null, "image/jpeg");
But unable to create image file all over the world
Can someone help me solve this problem?
source
share