How to upload an image via Sling POST servlet
This week I was asked to provide an example how to upload an image into the CQ5 DAM via the Sling POST Servlet.
I my previous example I showed you how to create multiple pages via the Sling POST Servlet.
In the HTML-block below you find an example on how to upload an image via the Sling Post servlet.
You can paste this into a .html file and open it into a browser.
In the HTML-form you can choose an image, this will be uploaded to the CQ5 DAM and multiple renditions will be created like it is done with a manual upload.
Feike Visser (@heervisscher)