Question
can't upload with file upload."" is not a file.
I am getting below error when i am uploading files of size more than 10 MB using FilePath Control.
can't upload with file upload."" is not a file.
This issue is coming when i am executing the Java Step in the activity which gets called on uploading the file.
try { String hiddenFilePath = tools.getParamValue("hiddenFilePath"); java.util.HashMap hmFileInfo = pega_rules_utilities.uploadFile(true); String strFileData = (String)hmFileInfo.get("FileData"); String strFileName = (String)hmFileInfo.get("FilePath"); ClipboardPage cpFAttach = tools.findPage("pyMultipleFilesPage.pyFileAttachment(<last>)", true); //save the encoded file to the database cpFAttach.putString("pyLabel", hiddenFilePath); cpFAttach.putString("pyAttachStream", strFileData); //set the file name as well cpFAttach.putString("pxAttachName", strFileName); oLog.info("Attached file ****** " + strFileName); } catch (PRRuntimeException pre) { tools.getThread().getThreadPage().putString("pyXMLStream", pre.toString()); pega.terminateActivity(); }
I am able to upload files less than 10 MB size without any issue. There is no such issue while going through the above step.
Please let me know how to upload files with size more than 10 MB using FilePath control.
***Moderator Edit-Vidyaranjan: Updated Platform Capability***
Hi Sandeep,
Thanks for posting the query. PFB links for the similar issue which might be helpful in this case.
https://community.pega.com/support/support-articles/upload-attachment-not-working-after-upgrade-pega-7
https://community.pega.com/support/support-articles/unable-upload-document-using-filepath