10-18-2013 09:27 AM
URL: http://localhost:8080/alfresco/service/api/upload/?alf_ticket = {User's ticket}
parameters: [filedata, filename, description, siteid, containerId]
12-18-2013 06:40 AM
12-18-2013 02:23 PM
12-19-2013 10:26 AM
http://localhost:8080/alfresco/service/api/upload
$json = ('
{
"filename":"HAHA.PDF",
"destination":"workspace://SpacesStore/'.$parentID.'",
"filedata":"'.$file.'"
}
');
$curl = curl_init();
curl_setopt($curl, CURLOPT_HTTPHEADER, Array("Content-Type: application/json"));
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC) ;
curl_setopt($curl, CURLOPT_USERPWD, "admin:admin");
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_URL, $submit_url);
curl_setopt($curl, CURLOPT_POSTFIELDS, $json);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$rs = curl_exec($curl);
11-14-2014 01:06 PM
01-14-2016 06:26 AM
07-23-2014 08:02 AM
siteid
, containerid
, uploaddirectory
to upload a file to a specific site directory inside documentLibrary
? It does not work… These are the values I use:
siteid = "repo",
containerid = "documentLibrary",
uploaddirectory = "raps"
uploaddirectory
param so I find them under repo/documentLibrary
instead of repo/documentLibrary/raps
.destination
param.
07-23-2014 11:01 AM
01-29-2015 08:21 AM
09-11-2015 05:37 AM
Tags
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.