docs/types/management.Uploadable.FromPath.html
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;
}
pathfilename?contentType?contentLength?
path: string
The path to the file to upload
Optionalfilenamefilename?: string
Optional override for the file name (defaults to basename of path). This is used to set the Content-Disposition header in upload requests.
OptionalcontentTypecontentType?: 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.
OptionalcontentLengthcontentLength?: 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.
Member Visibility
ThemeOSLightDark
Properties pathfilenamecontentTypecontentLength