Optional
idOptional
user_Get current folder
MIME type of the file
Get path to serve
Delete file
Optional
unlinker: (arg0: export=) => 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
Static
absStatic
allget all directories in the root folder (tenant root dir for multi-tenant)
Optional
ignoreCache: booleanif a cache exists, ignore it
Static
buildStatic
createStatic
destroyStatic
ensure_Ensure that file_store path is physically exists in file system. In reality just recursively creates full absolute path to db.connectObj.file_store.
Optional
tenant_name: stringStatic
findSelect list of file descriptors
Optional
where: WhereStatic
findStatic
from_Create new file
Static
from_Static
from_Create new file
Static
get_Get absolute path to new file in db.connectObj.file_store.
Optional
suggest: stringpath to file inside file store. If undefined that autogenerated uudv4 is used.
Optional
renameIfExisting: booleanStatic
getStatic
nameStatic
new_Create new folder
Static
normaliseStatic
normalise_Static
rootStatic
set_Static
updateUpdate File descriptor
primary key
row data
no returns
Static
update_Static
uploadThis 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: