Skip to content

Commit

Permalink
Merge pull request #4 from aryraditya/return-original-filename
Browse files Browse the repository at this point in the history
feat(MemoryStorage): return the original filename
  • Loading branch information
bmstefanski authored Dec 11, 2022
2 parents 3b79972 + c3e9a98 commit 997183c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/storage/disk-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { pump } from "../stream";
export interface DiskStorageFile extends StorageFile {
dest: string;
filename: string;
originalFilename: string;
path: string;
}

Expand Down
1 change: 1 addition & 0 deletions src/storage/memory-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export class MemoryStorage implements Storage<MemoryStorageFile> {
encoding,
mimetype,
fieldname,
originalFilename: file.filename,
};
}

Expand Down
1 change: 1 addition & 0 deletions src/storage/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export interface StorageFile {
fieldname: string;
encoding: string;
mimetype: string;
originalFilename: string;
}

export interface Storage<T extends StorageFile = StorageFile, K = any> {
Expand Down

0 comments on commit 997183c

Please sign in to comment.