IFileProvider
Overview
File provider interface for the file module.
Methods
upload
This method is used to upload a file
Parameters
The contents and metadata of the file.
Among the file’s details, you can access the file’s path in the path
property of the file object.
path
property of the file object.Returns
The details of the upload's result.
delete
This method is used to delete a file from storage.
Parameters
The details of the file to remove.
Returns
Promise
Promise<void>RequiredResolves when the file is deleted successfully.
getPresignedDownloadUrl
This method is used to retrieve a download URL of the file. For some file services, such as S3, a presigned URL indicates a temporary URL to get access to a file.
If your file service doesn’t perform or offer a similar functionality, you can just return the URL to download the file.
Parameters
The details of the file.
Returns
Promise
Promise<string>RequiredThe presigned URL to download the file
Promise
Promise<string>RequiredWas this section helpful?