The File Model

flitter-upload/deploy/File

exports:  File

const File

type:  Object

Schema for the File database record. Stores the original file name, new UUID file name, MIME type, and a customizable type name.

Name Type Notes
original_name String The original name of the file, as it was when uploaded. For example, "image001.jpg".

new_name

String The new name of the file. This is usually set to a UUID generated by flitter-upload when a file is stored.
mime String The MIME type of the file.
type String An arbitrary string categorizing the file. This is designed to be used by the developer to designate different types of uploads. For example, "profile-photo" or "user-pdf".
No Comments
Back to top