Interface RawFile

Represents a file to be added to the request

Hierarchy

  • RawFile

Properties

Properties

contentType?: string

Content-Type of the file

data: string | number | boolean | Buffer | Uint8Array

The actual data for the file

key?: string

An explicit key to use for key of the formdata field for this file. When not provided, the index of the file in the files array is used in the form files[${index}]. If you wish to alter the placeholder snowflake, you must provide this property in the same form (files[${placeholder}])

name: string

The name of the file

Generated using TypeDoc