Received Attachments (Expression) — DiSky

Addon: DiSky · Category: Expression · Since: 4.28.0

Syntax

received [the] attachments with [the] id %string%

Description

Get the attachments received from an attachment upload component in a modal. You have to precise the id of the component, and it will return a list of attachments (or an empty list if no attachment was received, or if the component with the specified id is not an attachment upload).

Examples

set {_att::*} to received attachments with id "test"
loop {_att::*}:
    send "- %attachment file name of loop-value% (ext: %file ext of loop-value%)" to console
    download loop-value in folder "plugins/data/attachments/%attachment file name of loop-value%"
reply with "Got attachments: %size of {_att::*}%"

View source