Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Publish assets automatically on folder

Hello, I want to publish an asset instantly as it's dropped into a specific folder.

How can I do this?

 

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi 

For Replication Package, please have a look at :- http://stackoverflow.com/questions/18955982/how-to-activate-programmatically-a-page-in-cq5-workflow

and 

Option 2 [Not tried, but could work]

Activate the page/assets on modification using Workflows

Link:- http://adobeaemclub.com/publish-assets-on-modification-using-workflow-launcher-in-aem/

[img]http://adobeaemclub.com/wp-content/uploads/2016/01/Workflow-Launcher.png[/img]

 

I hope this would help you.

Thanks and Regards

Kautuk Sahni

View solution in original post

3 Replies

Avatar

Level 10

You can write a Java program to watch a specific folder on the desktop.

https://docs.oracle.com/javase/tutorial/essential/io/notification.html

WHen you drop a file in a Java Watch Folder- post the file to an AEM sling settler. In the servlet - place the file in the DAM. Then use this API to replication content:

https://docs.adobe.com/docs/en/aem/6-0/develop/ref/javadoc/com/day/cq/replication/package-summary.ht...

Avatar

Correct answer by
Administrator

Hi 

For Replication Package, please have a look at :- http://stackoverflow.com/questions/18955982/how-to-activate-programmatically-a-page-in-cq5-workflow

and 

Option 2 [Not tried, but could work]

Activate the page/assets on modification using Workflows

Link:- http://adobeaemclub.com/publish-assets-on-modification-using-workflow-launcher-in-aem/

[img]http://adobeaemclub.com/wp-content/uploads/2016/01/Workflow-Launcher.png[/img]

 

I hope this would help you.

Thanks and Regards

Kautuk Sahni