Optionalcontext?: IReadableContextYou can pass IReadableContext that will be used by context-aware adapters.
OptionaldefaultCacheControl?: string | nullNote this setting is only used by cloud object storage services like aws s3, azure, or google cloud storage.
OptionaldefaultContentDisposition?: string | nullNote this setting is only used by cloud object storage services like aws s3, azure, or google cloud storage.
OptionaldefaultContentEncoding?: string | nullNote this setting is only used by cloud object storage services like aws s3, azure, or google cloud storage.
OptionaldefaultContentLanguage?: string | nullNote this setting is only used by cloud object storage services like aws s3, azure, or google cloud storage.
OptionaldefaultContentType?: stringThe default content type to be used when it cannot be infered by file extension.
OptionalkeyValidator?: FileKeyValidatorYou can pass a key validator. The method should return string error message if unvalid or null if valid.
OptionalonlyLowercase?: booleanWhen true, all file keys are automatically converted to lowercase before storage and retrieval.
Helps avoid case-sensitivity issues across different storage backends.
Optionalserde?: OneOrMore<ISerderRegister>You can pass an ISerderRegister instance to the FileStorage to register the file's serialization and deserialization logic for the provided adapter.
OptionalserdeTransformerName?: stringThe serde transformer name used to identify file storage serializers and deserializers when there are adapters with the same name.
OptionalurlAdapter?: Partial<IFileUrlAdapter>You can pass partial IFileUrlAdapter that can overide generating public url, signed upload and download url of the file storage adapter.
IMPORT_PATH:
"@daiso-tech/core/file-storage"