How can I upload a file to a case by inputting a full file path instead of choose a file in dialog

How can I upload a file to a case by inputting a full file path instead of choose a file in dialog?

As-is file uploading operation of our application:

  • Press Upload button

  • A standard Window file selection dialog pop up

  • Choose a file, then confirm

Now, per a requirement of robot, we want uploading file to a case with a local file path, e.g. C:\folder\file.txt, that input as a text field.

May I know any OOTB / suggested solution for this requirement?

Thanks.

Use the standard Pega file attachment flow and enter the full local path in the existing Attach a File dialog, because that is the supported ootb behavior. Pega documentation says users can type a full file name and path in that dialog, and the standard flow action Work-.AttachAFile provides the same attachment capability. Do not build a separate text field to pass a local path directly into the browser page, because browsers block web apps from setting file upload values for security reasons. For your robot, the clean solution is to open the standard attachment dialog, populate the file path there, and submit the upload normally. That keeps the upload supported and aligned with how Pega attachments are designed to work.