Get absolute file path from Upload widget in UI Designer

1
0
-1

Hello, Guys!
I'm new to Bonita BPM and I'm trying to get the absolute file path from an upload widget in my form in the UI Designer. I'm using Bonita BPM 7.4.1 and I was looking for some documentation, but I couldn't find anything for this version. I'm trying to get the full path of the file and save it in a process variable, because I have a custom created connector, that uploads the file to Alfresco repository.
I will really appreciate your help or ideas for another way to do this more simple.
Thank you in advance!
A.Mincheva

Comments

Submitted by Dibyajit.Roy on Thu, 02/16/2017 - 09:01

Hi
I am not sure about the process to be followed here.
But I use the following system to determine errors and its does give me the Temporary path created by the Upload widget.
In your form, at the bottom add a text field => remove all the text written there and replace with {{formOutput}}
You should see something like this.
"attachedCertificates":[{"tempPath":"tmp_911311812824719524.jpg","filename":"Desert.jpg","contentType":"image/jpeg"}],"attachedPassport":[{"tempPath":"tmp_3145421387437317679.jpg","filename":"Chrysanthemum.jpg","contentType":"image/jpeg"}],
Hope this helps.

No answers yet.
Notifications