Auth0 Node.js SDK - v5.1.0
    Preparing search index...

    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

    path: string

    The path to the file to upload

    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.

    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.

    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.