OptionalidOptionaluser_Get current folder
MIME type of the file
Get path to serve
Delete file
Optionalunlinker: (arg0: File) => Promise<void>Move file to other folder
target folder for file
Rename file
target file name
Set Min Role to read for file
target Role for file to read
Set user for file
target user_id
StaticabsStaticallget all directories in the root folder (tenant root dir for multi-tenant)
OptionalignoreCache: booleanif a cache exists, ignore it
StaticbuildStaticcreateStaticdestroyStaticensure_Ensure that file_store path is physically exists in file system. In reality just recursively creates full absolute path to db.connectObj.file_store.
Optionaltenant_name: stringStaticfindSelect list of file descriptors
Optionalwhere: WhereStaticfindStaticfrom_Create new file
Staticfrom_Staticfrom_Create new file
Staticget_Get absolute path to new file in db.connectObj.file_store.
Optionalsuggest: stringpath to file inside file store. If undefined that autogenerated uudv4 is used.
OptionalrenameIfExisting: booleanStaticgetStaticnameStaticnew_Create new folder
StaticnormaliseStaticnormalise_StaticrootStaticset_StaticupdateUpdate File descriptor
primary key
row data
no returns
Staticupdate_StaticuploadThis is a mobile-app function, it uploads a file to the saltcorn server.
file to upload
JSON response from POST 'file/upload'
File Descriptor class
Architecture tips: