Hey, Adrian. I've not tested it but try something like this:
curl -u admin:admin -F :operation=import -F :[email protected] -F :contentType=zip http://localhost:8080/greatlocation Also see the Sling docs on importing content[1]. HTH, Carl 1 http://sling.apache.org/site/manipulating-content-the-slingpostservlet-servletspost.html#ManipulatingContent-TheSlingPostServlet%2528servlets.post%2529-ImportingContentStructures On Fri, May 11, 2012 at 3:10 AM, Adrian Fish <[email protected]>wrote: > Hi All, > > Is there an api for unzipping a zip file into the JCR? I've seen that the > IMSCPFileHandler implements its own unzip approach, but I've also read that > Sling has a built in import routine that can be triggered using curl with a > param of :operation=import. What's the best way of going about it? > > Cheers, > Adrian. > > _______________________________________________ > oae-dev mailing list > [email protected] > http://collab.sakaiproject.org/mailman/listinfo/oae-dev > >
_______________________________________________ oae-dev mailing list [email protected] http://collab.sakaiproject.org/mailman/listinfo/oae-dev
