Files

Description#

All files uploaded to the system will be saved raw outside the database but the metadata will be stored in the database in order to have a reflection of all file storage in the system.

Data#

Creator#

The EID of user who created the file.

Path#

  • Description
    • The relative path of the file in the system.
  • Type
    • String
  • Validation
    • Required

Size#

  • Description
    • The size of the file in bytes.
  • Type
    • Number
  • Validation
    • Required

Mime type#

  • Type
    • String
  • Validation
    • Required

Type#

  • Type
    • Enum
    • Options
      • Image
  • Validation
    • Required

Sample data structure#

{
_id: "someID",
creationDate: "someday",
creator: "someID",
path: "path/to/file",
size: "123546",
mimeType: "image/png",
type: "image"
}