Pluxbox Logo

Upload block

Purpose

Convert anything into an array.

Input

  • Show
    This is the trigger that will show the upload window.

  • Mime type:
    Describes the type of the input(upload) field. It has to be a MIME* type in a text format. Example: "image/png, image/jpeg"
    *See https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types for more info.

  • Multiple:
    A boolean value. If true, the block will accept several files and output a list containing the files.

Output

  • Output file/s:
  • If the Multiple is set to true, the output will be a list containing all the files
  • If the Multiple is set to false, the output will be a single file

Example

  Output:
  [
    file1, 
    file2,
    file3
  ]

graph LR
A(["Button"]) --Show--> D(Upload)
B(["image/png"]) --Mime type--> D
C(["true"]) --Multiple--> D
D --Value--> E(Output)