Changing destination of user generated content image uploads from AEM journal/blog | Community
Skip to main content
davidevg09
Level 2
Mar 28, 2018 7:16 PM UTC
Solved

Changing destination of user generated content image uploads from AEM journal/blog

When using the rich text editor through the journal/blog component, uploading an image sends it to the following destination: /content/usergenerated/tmp/social/images/...

Is there any way I can update a certain file to have any uploaded images from any of my journal/blog components send the images to a folder of my choice? Ideally I want all usergenerated image uploads to be sent to a folder of my choice under the  /content/dam directory.

I'm using AEM 6.3

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
kumarashokAccepted solution
Employee
Apr 6, 2018 10:42 AM UTC

There is no extension made available to  achieve this.

Reason:-

/content/usergenerated/tmp/social/images/* is a temporary location to upload and file finally gets stored along with actual UGC in mongo ( for MSRP) , mySQL ( for DSRP) . Since SRP resides out side JCR , your images are accessible from all the publish instances without relying on replication. putting these files in dam would make them instance locked or rely on replication to distributed across all publish instances.

The main advantage of putting images in dam is to extract metadata and renditions via dam workflows. Whereas UGC is always get created on a publish instance and dam workflows are not recommended to configure there.

3 replies

Level 2
Sep 24, 2018 8:40 AM UTC

So if we use JCR as the SRP then the images will keep getting deleted. What is the solution for that? ashokkumar​

Translate
kumarashokAccepted solution
Employee
Apr 6, 2018 10:42 AM UTC

There is no extension made available to  achieve this.

Reason:-

/content/usergenerated/tmp/social/images/* is a temporary location to upload and file finally gets stored along with actual UGC in mongo ( for MSRP) , mySQL ( for DSRP) . Since SRP resides out side JCR , your images are accessible from all the publish instances without relying on replication. putting these files in dam would make them instance locked or rely on replication to distributed across all publish instances.

The main advantage of putting images in dam is to extract metadata and renditions via dam workflows. Whereas UGC is always get created on a publish instance and dam workflows are not recommended to configure there.

Translate
kautuk_sahni
Employee
Apr 6, 2018 9:34 AM UTC

Checking with Internal team!

-Kautuk

Translate
Kautuk Sahni