Support Article
PRRuntimeException while uploading attachments by selecting file
SA-66602
Summary
PRRuntimeException while uploading attachments by selecting a file.
Error Messages
PRRuntimeException: Can't continue with file attachment. File "file://web:/StaticContent/global/ServiceExport/SS4_Application.pdf" doesn't exist
Steps to Reproduce
- Log in to the application
- Create a mashup that has the pyCaseAttachments section
- Select a file and upload
Root Cause
The harness did not contain a html <form> object.
The file upload processing from pyCaseAttachments and the browse button uses an existing <form> object to post the file upload using the multipart or form-data encoding. When there is no <form> object in the document object, no file is not sent in the reloadSection call.
Resolution
Perform the following local-change:Enable the WorkArea (inner harness) on the Advanced tab in the custom harness when using pyCaseAttachments. This adds a <form> object to the harness and allows the file upload when using the browse button to locate and select a file to upload.
Published February 12, 2019 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.