LocalAssetStorageStrategy
A persistence strategy which saves files to the local file system.
- Implements:
AssetStorageStrategy
toAbsoluteUrl
property
((reqest: Request, identifier: string) => string) | undefinedconstructor
method
(uploadPath: string, toAbsoluteUrlFn?: (reqest: Request, identifier: string) => string) => LocalAssetStorageStrategywriteFileFromStream
method
(fileName: string, data: ReadStream) => Promise<string>writeFileFromBuffer
method
(fileName: string, data: Buffer) => Promise<string>fileExists
method
(fileName: string) => Promise<boolean>readFileToBuffer
method
(identifier: string) => Promise<Buffer>readFileToStream
method
(identifier: string) => Promise<Stream>deleteFile
method
(identifier: string) => Promise<void>Was this chapter helpful?