Image Download

Confluence User - 26 Jun, 2020

Hello Guys,

I am going to store data with File Upload in the table.
I have two forms with the same Table Name.


1st form has the below details.
Form Name - TaskDetail
TableName - task_details
Fields - Task Detail, Task Date etc.

2nd form has below details
Form Name - TaskApproval
TableName - task_details
Fields - Comments, FileUpload, Status.

As per our application requirement.
Firstly, Form "TaskDetail" Data will be insert into "task_details" table.
Second, Form "TaskApproval" time Comment, FileUpload, and Status will be updated to the same table "task_details" using bean shell form store binder.

For more bean shell script code is as below:



Now, my problem is images are stored perfectly as per joget folder structure requirement like (formname\recordId\filename.)

Now, how I can not allow uploaded files to be download.

https://localhost:8080/jw/web/client/app/IMAGEUPLOAD/1/form/download/TaskDetail/4ac0715c-6795-42b8-b332-8a59321a1268/FileUpload.zip


Thank you


Regards

datalists;forms;userviews;user;downloade;fileupload

3


26 Jun, 2020
confluenceUser
confluenceUser

It is likely that the file did not get uploaded then. Why can't you use the default Workflow Form Binder?

26 Jun, 2020
confluenceUser
confluenceUser

We need to update data with multiple forms that's why we use bean shell. 

And File was already uploaded. I was review with forms file manager plugin. 

It was stored as tablename + recordId + filename 

28 Jun, 2020
confluenceUser
confluenceUser

In File Upload#Permission of the form with ID "TaskDetail", set the permission.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print