Returns a StorageEngine implementation configured to store files on
the local file system.
A string or function may be specified to determine the destination
directory, and a function to determine filenames. If no options are set,
files will be stored in the system's temporary directory with random 32
character filenames.
Parameters
options: DiskStorageOptions
Returns StorageEngine
memoryStorage
memoryStorage:()=>StorageEngine
Type declaration
():StorageEngine
Returns a StorageEngine implementation configured to store files in
memory as Buffer objects.
Returns a
StorageEngine
implementation configured to store files on the local file system.A string or function may be specified to determine the destination directory, and a function to determine filenames. If no options are set, files will be stored in the system's temporary directory with random 32 character filenames.