API ReferenceModelsFile

File

The file model is used to represent a file in the database.

Field NameTypeDescription
createdAtdateThe date the file was created
expiresAtdate?The date the file will expire
idnumberThe ID of the file
mimetypestringThe mimetype of the file
viewsnumberThe number of views the file has
maxViewsnumber?The maximum number of views the file has until deleted
urlstring?The URL of the file (/u/test.png)
namestringThe name of the file (123.png)
originalNamestring?The original name of the file (test.png)
Last updated: 8/4/2023
Edit this page on GitHub