diff --git a/src/models/FileModel.js b/src/models/FileModel.js index d8e225f..2740a73 100644 --- a/src/models/FileModel.js +++ b/src/models/FileModel.js @@ -5,6 +5,11 @@ const schema = new Schema({ fileId: String, uploadDate: Date, contentType: String, + ext: String, + + // Image/Video specific properties + width: Number, // The width of the image/video in pixels + height: Number, // The height of the image/video in pixels }); export default mongoose.models.File || mongoose.model("File", schema);