FileMultiUploadField in Dialog InputParameter.fileParameter with field

Hi,

Is it possible to add FileMultiUploadField in Dialog inputparameter

I tried below code and it was suggesting to cast FileMultiUploadField as field on return but when i tried casting i am getting unable to cast Field as FileMultiUploadField

InputParameter.fileParameter("fileUpload").withField(() -> {
    FileMultiUploadField fileMultiUploadField=uiComponents.create(FileMultiUploadField.NAME);
    fileMultiUploadField.setCaption("upload documents");
    return (Field) fileMultiUploadField;

}),

Any suggestion how can i add FileMultiUploadField in input paramter to select multi files upload

Hello!

FileMultiUploadField does not extend Field interface, because it does not have a value. Component allows us only upload files. So it is not a common field.

I can suggest you to create screen with custom layout and FileMultiUploadField. Then open it as dialog.