UNPKG

express-storage

Version:

A simple and powerful file upload and storage management package for Express.js applications. Supports multiple storage drivers including S3, GCS, OCI, and local storage with presigned URL support.

30 lines 971 B
import { BaseStorageDriver } from './base.driver.js'; import { FileUploadResult, PresignedUrlResult } from '../types/storage.types.js'; /** * Local storage driver for file system storage */ export declare class LocalStorageDriver extends BaseStorageDriver { private basePath; constructor(config: any); /** * Upload file to local storage */ upload(file: Express.Multer.File): Promise<FileUploadResult>; /** * Generate upload URL (not supported for local storage) */ generateUploadUrl(_fileName: string): Promise<PresignedUrlResult>; /** * Generate view URL (not supported for local storage) */ generateViewUrl(_fileName: string): Promise<PresignedUrlResult>; /** * Delete file from local storage */ delete(fileName: string): Promise<boolean>; /** * Find file path by searching through month directories */ private findFilePath; } //# sourceMappingURL=local.driver.d.ts.map