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.
OptionaleventBus?: EventBusInputYou can provide an IEventBus or an IEventBusAdapter instance to handle the component's events.
If you provide an adapter, it will be automatically wrapped in an EventBus instance.
OptionalexecutionContext?: IExecutionContextYou can pass IExecutionContext that will be used by context-aware adapters.
OptionalkeyValidator?: FileKeyValidatorYou can pass a key validator. The method should return string error message if unvalid or null if valid.
OptionallockFactory?: LockFactoryInputYou can provide an ILockFactoryBase, an ILockAdapter or an IDatabaseLockAdapter instance to handle locking when write methods are called.
If you provide an adapter, it will be automatically wrapped in an LockFactory instance.
Optionalnamespace?: INamespaceOptionalonlyLowercase?: 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.
OptionalwaitUntil?: WaitUntilYou can pass the waitUntil function to handle background promises.
This is required when working with environments like Cloudflare Workers or Vercel Functions to ensure tasks complete after the response is sent.
IMPORT_PATH:
"@daiso-tech/core/file-storage"