File Upload and Download

Hello,

I want to upload file at the start of the process and read the file on a custom connector in the next step. I have reviewed the DemoUploadFileDiagram which demonstrates an upload and download documents in the middle of the process.

What are the differences for this task vs. the demo?

  • created myDocument and Initial content from contract input

  • in connector I have input type of FileInputValue

I’m having a lot of type collisions in my implementation class.

Open url to file → submit process → have connector read input parameter → FileInputStream → output values from file.

Thank you

Added the correct url link to the GUI

return “/bonita/portal/” + $data.context.myDocument_ref.url;

Getting the following warning.
File looks like it uploads but getting error 400 when clicking download link

2015-08-19 08:16:21.229 -0500 org.bonitasoft.console.common.server.page.ResourceRenderer org.bonitasoft.console.common.server.page.ResourceRenderer getFileContent
WARNING: Cannot find the resource file C:\BonitaBPMSubscription-7.0.0\workspace\tomcat\bonita\client\tenants\1\work\pages\p6750597259663426962_custompage_reviewAccountRequest\resources\documentDownloadURL