Hi, On Fri, Jan 3, 2014 at 12:07 AM, Buzzterrier <[email protected]> wrote: > ...the 3_1388.. is auto generated so I cannot retrieve the file using > GET http://localhost:8090/blue/content/workorders/buzzhead.jpg ...
The actual path where content is created is returned in a Location header in the POST response, as is customary with RESTful interfaces, you could use that to find out about the generated node name. You can also supply a :nameHint parameter in your POST and Sling will try to use that for the new node name, as described at [1]. Note that using WebDAV MKCOL / PUT methods instead of POST allows you to specify an exact path, if it's just files that you are storing. -Bertrand [1] http://sling.apache.org/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-post.html
