function uploadFileToS3(file, options): Promise<File>

Uploads a file to S3 bucket.

Examples

Parameters

file: | string | Uint8Array | Buffer | ReadStream | Download

The file to upload, it can be a downloaded file by the downloadFile function or another content, the file can be Download | string | Uint8Array | Buffer | ReadStream

options

The options for uploading the file.

options.fileNameOverride?: string

Optional. Override for the file name.

options.s3Configs?: S3Configs

Optional. S3 configuration options.

Returns

Promise<File>

A promise that resolves to a File object.