I wonder if the attachment from the PEGA can be customize by file extension? From another reference post they said to OOTB Filepath or using pyFileAttachment.
I've already check the Control:FilePath and it used 2 parameters to implements a file browser.
SetEncodingNow - Set to truei if File encoding should be updated immediately and pySetValueFromFileName -- specifies an element to be updated with the selected filename via an onchange event if the element is empty.
So do I need to add another parameter for my input validate file extension or do I need to make Java activity to customize it?
/* If uploadFile is fixed to populate the correct fileName and ext when there are more than one dot in the fileName, We can use the hasmap provided by the uploadFile API */
String file = currentFile; /* BUG-194578 :Do not use the encoded file name /prfUploaded.getName(); */
String filetype = file.substring(file.lastIndexOf('.') == -1 ? file.length() : file.lastIndexOf('.')+1,file.length());//String)(hmFileInfo.get("FileExtension"));
String pyTruncatedFileName = fileName.length()>59 ? fileName.substring(0,59) : fileName;
In the Java Activity, Pega make Copies from the selected files into the clipboard as a page list. This will be used in pzMultiFile path control, which triggers this activity to copy the chosen files data as a page list into clipboard.
In my case, I need to make validate within the file attachment type, so in this line: