upload

Upload a file to a remote storage provider.

Usage

const uploadedFileUrl = await myRemoteStorage.upload(file, fileName);

Returns

Promise<string>

A promise that resolves to the URL of the uploaded file.

Parameters

file

  • Type FileInput

The file data that you want to upload.

fileName (Optional)

  • Type string

The name you want to give to the uploaded file.

Previous
Remote Storage Provider