数据到php 5.4.3露天

嗨,我有一个问题,当我可以尝试上传一个文件的属性和元数据到户外5.2使用PHP 5.4.3,这是我的代码:

  curl_setopt_array($curl, array(
        CURLOPT_PORT => "8080",
        CURLOPT_INFILESIZE => filesize($lo_document['tmp_name']),
        CURLOPT_URL => "http://localhost:8080/alfresco/api/default-/public/alfresco/versions/1/nodes/-root-/children",
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
        CURLOPT_CUSTOMREQUEST => "POST",
        CURLOPT_POSTFIELDS => $pam['body'],
        CURLOPT_HTTPHEADER => array(
            "authorization: ".$la_auth['Authorization'],
            "accept: application/json",
             "content-type: multipart/form-data"
        )
));

$ pam ['body']是这样的:

-----------------------60061ddb32c3445516be40d631852702
Content-Disposition: form-data; name="name"

patatas.pdf
-----------------------60061ddb32c3445516be40d631852702
Content-Disposition: form-data; name="nodeType"

mutua:documentoMutualista
-----------------------60061ddb32c3445516be40d631852702
Content-Disposition: form-data; name="filedata"; filename="CS-08940-00227056-1.pdf"
Content-Type: application/pdf

-----------------------60061ddb32c3445516be40d631852702--


这显示了这个错误:

{"error":{"errorKey":"No disk space available","statusCode":409,"briefSummary":"05140331 No disk space available","stackTrace":"For security reasons the stack trace is no longer displayed, but the property is kept for previous versions","descriptionURL":"https://api-explorer.alfresco.com"}}

但是这个错误意味着一个参数或更多的错误,但我不知道哪个,Server有很多的磁盘空间。

任何帮助? 任何人使用ApiRest Alfresco 5.2和PHP?

链接地址: http://www.djcxy.com/p/48899.html

上一篇: data to alfresco with php 5.4.3

下一篇: PHP cURL Submitting POST data, multipart/form