Bitbybit Docs
    Preparing search index...

    Class DownloadDto (Inputs.Asset)

    Feeds asset.download: what to write into the downloaded file, what to call it and which content type to declare.

    Index

    Constructors

    • Parameters

      • OptionalfileName: string
      • Optionalcontent: string | Blob
      • Optionalextension: string
      • OptionalcontentType: string

      Returns DownloadDto

    Properties

    fileName: string

    Name the browser saves the file under, without the extension, which is added

    undefined
    
    content: string | Blob

    What the file holds: text, which is wrapped in a Blob of contentType, or a Blob saved as it is

    undefined
    
    extension: string

    Extension added to the file name after a dot, such as txt, csv or json

    txt
    
    contentType: string

    MIME type declared for text content, such as text/plain or application/json

    text/plain