08-08-2016 09:38 AM
I'm using the PHP automation client to bulk import some images. When I create document 'file' everything works fine, but if I change it to 'picture' it seems to work and I get a response like:
_{"entity-type":"document","repository":"default","uid":"6f71c94b-92e6-48ef-a3bb-bc20ed9ddce7","path":"/default-domain/workspaces/Sample Content/13445.jpg","type":"Picture","state":"project","parentRef":"e5ff9e6a-a019-4fc8-a0e0-167db9eb6488","isCheckedOut":true,"changeToken":"1470662900757","title":"13445.jpg","lastModified":"2016-08-08T13:28:20.75Z","facets":["Versionable","Publishable","Picture","Commentable","HasRelatedText"]}_
But then when I go to click on the document I get 'An error occurred'.
Even trying an empty picture through curl has the same issue:
_curl -X POST -H 'Content-Type: applicat, "properties": {"dc:title": "My great new picture"}}' http://localhost:8080/nuxeo/api/v1/path/default-domain/workspaces/Sample%20Content_
Any advice on any config/parameters I'm missing? Or other ways to achieve this?
Thanks
08-08-2016 09:46 AM
"An error occurred" Yes but what error? Please check the server logs.
08-08-2016 11:29 AM
Hi. The full error log is http
08-09-2016 07:11 AM
Retrying with the automation client (instead of curl/the API) this is now working fine - I think there may have been an issue with permissions.
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.