File upload option as part of "Dialog participant step" dialog

prathik-sm

15-10-2020

Hi Team,

We are trying to develop a workflow for page activation where user can have option to select values from multi-select and file upload field at the time of triggering the workflow.

Purpose of Multi-select and File upload:
1)Multi-select options is fixed list of items describing type of change. i.e. change in header, footer, body, experience fragment or particular component etc.,
2)File upload - author will attach mail item which contains approval for doing this particular activation.

In this page(https://stackoverflow.com/questions/59987056/aem-workflow-custom-input-data) - we found that custom fields(multi-select and file upload) can be added as part of "Dialog Participant Step" and keep this as first step of the workflow.

We are able to see multi-select value getting saved at the node(/var/workflow/instances/server0/2020-10-15_1/test-wf-model_8/history/1602768572342/workItem/metaData) but file upload is not happening and thus the property is not getting saved at this node.

We have tried (granite/ui/components/coral/foundation/form/fileupload) and (cq/gui/components/authoring/dialog/fileupload) as resourceType for fileupload. But it is not working.

Please let us know how can we upload an email attachment as part of dialog participant step.

NOTE : Values from multi-select is getting saved but file uploaded using file upload option is failing. 


Dialog details about file upload fields:

<oldfile
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/fileupload"
fieldLabel="File Upload"
name="./oldfile"/>
<file
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/authoring/dialog/fileupload"
autoStart="{Boolean}false"
class="cq-droptarget"
fileNameParameter="./fileName"
fileReferenceParameter="./fileReference"
multiple="{Boolean}false"
name="./file"
title="Upload Image Asset"
uploadUrl="${suffix.path}"
useHTML5="{Boolean}true"/>

 

Accepted Solutions (0)