How to send a File from User Portal to File Listener Path

Hi EveryOne,

I have a requirement like, we have to upload a .csv file from end user portal and send that uploaded .csv file to File Listener Path. Can anyone pls help me out how to achieve this requirement. Thanks in advance.

@Vijay Prakash if you use pzFilepath control and user uploads via that control, file will be saved in Service export directory path in the server. You can configure your email listener to listen to service export directory path.

@Anoop Krishna But File Listener path is in Pega cloudrepository. so how to push the file to that location? Any ideas on this. Pls help me out here

@Vijay Prakash

  1. You need to get the file pyattachStream from service export directory. No need to create attachment page and all, just get the attach steam.

Get pyattachStream from service export directory

  1. Now use D_pxNewFile to create a new file(but same file actually) in your repository path.

Repository apis