Repository for Single node

Hi All,

We have one requirement to send attachment to external system through URL which file can be download automatically when clicking on that URL.

But in our environment we don’t have common repository and files are saving on defaultstore(Database).So we created new repository and saving attachments on server but the issue is as our cluster environment files are saving on first node,some times those are saving on second node,we need to send only one node URL to external system for accessing.

We need to save files only on first node how to achieve this,please suggest.

We have given resource path as below…

///opt/application/abc/G13R02C13/tomcat/00/webapps/Foldername

@SrikanthM0456 :warning: This is a GenAI-powered tool. All generated answers require validation against the provided references.

To achieve saving files only on the first node in a clustered environment you can configure your repository to ensure that all attachments are directed to a specific node. This can be done by setting the resource path in the Repository rule to point to the desired node’s storage location. Additionally you may need to implement logic in your application to handle the attachment process ensuring that it checks the node’s status and directs the file uploads accordingly. This way you can maintain a consistent URL for the external system to access the files stored on the first node only.

File upload and download troubleshooting FAQs

How to dynamically change attachments storage directory when using Repository

Requirements and restrictions for case attachments in a file storage repository.

Refactoring to use the Pega Cloud File storage repository instead of local file system repositories