Hi,
I am using aem6.5 and currently implementing a post form for anonymous user who needs to upload a image to aem publisher under certain content dam path say (/contet/dam/project/uploadimage/*) which latter will be pushed to author and replicated back to all the aem publisher so that all the publisher are in sync.
Here wanted to know what is best pratice we could follow:-
1> Should i create a system user and give permission to write only under (/contet/dam/project/uploadimage/*) create a servelt .
When the anonymous user It will hit the servlet i will referece the system user and get system user and upload the image to (/contet/dam/project/uploadimage/*) and finally logout the system user at the end of servlet processing.
In this way if the anonymous user is a bot or hacker this will not allow to anonymous user to traverse through nodes path for which anonymous user has access.
2> Or is it fine that just use anonymous user access and upload the image to (/contet/dam/project/uploadimage/*) ,
Note:- here anonymous user may have access to read or write based on other modules we could have written.
Thanks