Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Unable to upload document using filepath

SA-32299

Summary



User is unable to upload a document using a 'FilePath' control on a data-portal.


Error Messages



com.pega.pegarules.pub.PRRuntimeException: Can't continue with file upload. "" is not a file.


Steps to Reproduce

  1. Create a Portal and supporting Harness.
  2. Add 'FilePath' control to the section of that Harness.
  3. Also, add a button to call the out of the box activity UploadFile.
  4. Launch the Portal and click the button to upload a file and observe no upload occurs and an error is displayed.


Root Cause



An issue in the custom application code or rules.

The 'FilePath' control saves the attached data once a submit event is fired.

​The saved data then is available for use to the UploadFile activity typically configured as a post-processing activity on a flow action rule.


Resolution



Perform the following local-change:
  1. ​Update the portal configuration to load the FilePath coupled section from a modal dialog configured like the out of the box example seen below..
  2. pzUploadFileWithBrosweOption has the activity UploadFile configured as a post -processing activity.

Published February 3, 2017 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us