New File Upload (Expression) — DiSky

Addon: DiSky · Category: Expression · Since: 4.0.0

Syntax

[new] file (data|upload) from [local] file %string% [(with name|named) %-string%] [with spoiler %-boolean%]

Description

Create a new file upload from various sources: local file path, URL, attachment, or image. You can optionally specify a custom file name and whether to mark it as spoiler.

Examples

set {_upload} to file upload from local file "plugins/MyPlugin/data.txt"
set {_upload} to file upload from url "https://example.com/image.png" with name "custom.png"
set {_upload} to file upload from attachment {_attachment} with spoiler true

View source