aboutsummaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
Diffstat (limited to 'src/db')
-rw-r--r--src/db/model/File.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/model/File.ts b/src/db/model/File.ts
index 5bae182..95031e4 100644
--- a/src/db/model/File.ts
+++ b/src/db/model/File.ts
@@ -75,6 +75,9 @@ export default class File extends Model<File> {
public status!: string;
@Column
+ public originalMimetype!: string;
+
+ @Column
private metadataInternal!: string;
public get name(): string {
@@ -136,6 +139,7 @@ export default class File extends Model<File> {
}
public set mimetype(mime: string) {
+ this.originalMimetype = mime;
this.type = mimes.get(mime) || 'generic';
}
}