cancel
Showing results for 
Search instead for 
Did you mean: 

Uploaded file on a process task does not display thumbnail

jpotts
World-Class Innovator
World-Class Innovator

In Alfresco Process Services 1.9.0.3, when you upload a file to the out-of-the-box task form that is part of the task app, a thumbnail will be rendered and displayed after uploading, as shown below, which is great:

image

However, when you use the Upload form control on a form in a custom process, a thumbnail is not generated, as shown below, which is not what we expected:

image

Maybe there is an option or a style or something else that we are supposed to specify in the form design when using this control? If so, what is it and where is it documented?

Or is this a bug?

5 REPLIES 5

jljwoznica
Star Collaborator
Star Collaborator

Do you have the 

"showDocumentContent":true 
 
set? This is what determines if the content (thumbnail) is visible or not.

jpotts
World-Class Innovator
World-Class Innovator

Where is that set?

Just to be clear, I'm designing the form in the form editor of the activiti-app in APS 1.9.0.3. The file upload control has the following tabs: General, Attach File Options, Visibility, and Style.

jljwoznica
Star Collaborator
Star Collaborator

I do not see this behaivor. When I add a document using the form - it is not displayed. Only the name of the file.

image

Then when I look at the running processes, I see the thumbnail you are referring to.

image

Finally, if I display the value (contents) of this field showing "show content embedded in form" when I create the form.

image 

Then I see something like this.

image

Where did you get the screenshot you are showing in your original message?

jpotts
World-Class Innovator
World-Class Innovator

Yes, when you look at the *process* the thumbnail shows up.

Look at the out-of-the-box Task App. When you add a content item, the thumbnail shows up immediately.

Now look at your test process. When you added that attachment, the thumbnail did not show up on the task form. You had to actually view the running process to see it.

So if you start a process, or if you are assigned a task in a process, and you upload a file, the thumbnail is never displayed for some reason. It isn't displayed immediately upon upload (like it is for the OOTB Task App) and it is not displayed if you save the task and return to it. The control just shows the file name, like it is in your screenshot.

jljwoznica
Star Collaborator
Star Collaborator

This is working as designed with the out of the box Form controls.