Back to Node Auth0

Type Alias FromPath

docs/types/management.Uploadable.FromPath.html

5.9.11.4 KB
Original Source

Type Alias FromPath

A file path with optional metadata, used for uploading a file from the file system.

type FromPath = {
path: string;
filename?: string;
contentType?: string;
contentLength?: number;
}

Index

Properties

pathfilename?contentType?contentLength?

Properties

path

path: string

The path to the file to upload

Optionalfilename

filename?: string

Optional override for the file name (defaults to basename of path). This is used to set the Content-Disposition header in upload requests.

OptionalcontentType

contentType?: string

Optional MIME type of the file (e.g., 'image/jpeg', 'text/plain'). This is used to set the Content-Type header in upload requests.

OptionalcontentLength

contentLength?: number

Optional file size in bytes. If not provided, the file size will be determined from the file system. The content length is used to set the Content-Length header in upload requests.

Settings

Member Visibility

  • Protected
  • Inherited

ThemeOSLightDark

On This Page

Properties pathfilenamecontentTypecontentLength