file upload

Uploading files through REST API

I have created an angular application to implement an approval process. I need to upload some files. But the api given in the documentation does not seems to work

The api that i tried was

/portal/fileUpload

a multi part post request to that api gives a 200 response but does not contain any data in the body. Even if the api is called without the cookies or header it still gives back a 200 response. Any suggestions other than writing my own file uploader?

How to access file via selected table object.

Hey guys,
I'm new to bonita and today I tried the upload widget by using this example:
https://community.bonitasoft.com/questions-and-answers/file-upload-widget

So I can upload in one task a pdf-file and download it again in the next task. That works.
But now I want to download the file in another way. My project looks pretty simple, I have 2 forms and one Page.

Accessing Doument Contract in bonita Script

I want to access document contract which i have created on step named "Step Upload" in example version 7.1.5-1.0.1 at link http://community.bonitasoft.com/project/file-upload-and-download-process... but its not working i am only trying to access contract using following code:

import org.bonitasoft.engine.bpm.contract.FileInputValue
import org.bonitasoft.engine.bpm.document.Document
import org.bonitasoft.engine.bpm.document.DocumentValue

Uploading file on Step in Bonita

Input Text field with File Upload and Download

I want one input text and one select box with multiple files upload at the start of the process and read the file and text inputs in the next step. I have reviewed the DemoUploadFileDiagram which demonstrates an upload and download documents in the middle of the process.

Old user icon not removed after updated with REST API

I am uploading user icons through REST API.

It works as expected and on first run I get my 1170 files in tenant work/icons/users directory.

The problem is when I run a second time my job. All the icons get duplicated on disk... The old user icon should be deleted when it is updated.

Optional Document Upload

Hi

Im using Bonita 7.1

I would like to know if there is a way to have an optional document upload?

I have a form with 10 document upload widgets, some times we need all 10 sometimes only 2, they cant be part of the contract because I might not use them and then the contract will not be for filled, so i cannot submit.

Any idea what is the best way to do this?

Regards
Paul

File Upload and Dowload from 6.x

Hi all,

i would like to upload and download a file. I know the FileUploadDownload Example but i would like to build the process via the 6.x Pageflow editor.

This is what I've already did:
* Execution > Contract > new Contract (type "file") named "input1"
* Pool > Data > new Document > File contract input "input1"
* Created a Pageflow and uploaded the file (think so, because no errors appeared)

A FILE object defined in the contract is always madatory? Bonita 7.0.2

Hello,
I am testing this process to upload and download files. I have set the mandatory property of upload widget to false.
When I throw the process, if I do not select a file in "Step Upload" and click "submit" the process does not continue to the next task and this message catalina log:

Uploading files to other locations

I understand bonita uses documents to store files uploaded by users however they are stored in the bonita database and for me this is unnacceptable. Is there a way to change this so it's stored as a file in a place I wish or is there a way to upload a file via groovy script?

Notifications