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"}}' <a href="http://localhost:8080/nuxeo/api/v1/path/default-domain/workspaces/Sample%20Content_" target="test_blank" rel="nofollow noopener noreferrer">http://localhost:8080/nuxeo/api/v1/path/default-domain/workspaces/Sample%20Content_</a>
Any advice on any config/parameters I'm missing? Or other ways to achieve this?
Thanks