MultipleFileUploadField - Embedded interface

Hi All,

I am using Appian 17.2 and loading contents from Appian in an embedded interface. When I try to use latest file upload component , UI is breaking with “An internal error has occurred.

Exception caught: com.appiancorp.core.expr.exceptions.IllegalSailComponentUseException: MultipleFileUploadField must be used within a SAIL component.”. Not sure about the root cause, please share your inputs

 

 

Thanks,

Lobin

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    A Score Level 1
    in reply to santoshd378
    Hi
    PFB code. This works in tempo and throws error only in embedded interface.
    a!fileUploadField(
    label: "Upload Documentation",
    instructions: cons!FILE_TYPE_MSG,
    labelPosition: "ABOVE",
    target: cons!TARGET_FOLDER,
    value: ri!docAdditionalDocumentation,
    maxSelections: 1,
    validations: with(
    local!invalidExtensions: difference(
    upper(
    fv!files.extension
    ),
    {
    "JPG",
    "JPEG",
    "PNG",
    "BMP",
    "PDF"
    }
    ),
    if(
    length(
    local!invalidExtensions
    ) > 0,
    cons!FILE_TYPE_VALIDATION_MSG,
    ""
    )
    ),
    saveInto: ri!docAdditionalDocumentation,
    required: false(),
    helpTooltip: ""
    )

    Thanks,
    Lobin
Children