upload
Usage
const uploadedFileUrl = await myRemoteStorage.upload(file, fileName);Returns
Parameters
file
fileName (Optional)
Last updated
Upload a file to a remote storage provider.
const uploadedFileUrl = await myRemoteStorage.upload(file, fileName);Promise<string>
A promise that resolves to the URL of the uploaded file.
Type FileInput
The file data that you want to upload.
Type string
The name you want to give to the uploaded file.
Last updated
