Skip to main content
Version: Current

File Actions

  • DownloadAction​

    Defines an event that is used to download a file onto the device.

    Members​

    • data any​

      The data that should be included in the downloaded file.

    • filename string​

      The name of the downloaded file. (includes the extension)

    • mimeType string​

      The MIME type of the downloaded file.

    • type "download"​

    • uncopiable? boolean​

      Whether the action can be structure cloned. If true, then the action should not be passed across message ports without special handling.

  • UploadedFile​

    Defines an interface that represents a file that was uploaded.

    Members​

    • data (string | ArrayBuffer)​

      The data that the file contains.

    • name string​

      The name of the file that was uploaded.

    • size number​

      The size of the file in bytes.