Global File
Overview
The new Global File API is used to access V3 of our Global Files Service. The V3 API brings new features to global files:
- Ability to organize files into sub-directories
- Ability to upload global files from the Client Libraries (by migrating an uploaded User File)
Note that because these files are global to the app, this API has been designed with additional checks (in terms of treeIds, versions, etc.) for concurrency safety.
Important notes:
- V3 files are stored separately from the legacy global files
- This API is not supported by the current Design Portal.
To access the files uploaded into the Custom Config | Files section of the portal, you need to use the legacy S3 Handling service.
There is a new globalFileTree structure added to app-record to hold the tree structure that we will store files in. Note that this structure is separate from the files list itself (which will still be stored in the fileMetadata collection) and of course the cloud storage itself (accomplished via S3, Google Cloud Store, etc). The treeId (aka globalTreeId, folder or file Id) represents the guid for folders or files in the file tree structure.
API Summary
Client File Retrieval APIs
- GetGlobalFileList() - list all global files at the specified
folderPath - GetFileInfo() - returns information about the specified file, given a
fileId. - GetFileInfoSimple() - returns information about the specified file, given a
folderPath+filename. - GetGlobalCDNUrl() - only required for clients that don't support redirection
System File Retrieval APIs
Accessible via cloud-code and S2S.
- SysGetGlobalFileList - list all global files at the specified
folderPath - SysGetFileInfo() - returns information about the specified file, given a
fileId. - SysGetFileInfoSimple() - returns information about the specified file, given a
folderPath+filename. - SysGetGlobalCDNUrl - only required for clients that don't support redirection
File Management
- SysMoveToGlobalFile() - migrate a file from User Files to the Global File system
- SysCopyGlobalFile() - copy a file
- SysMoveGlobalFile() - move (or rename) a file
- SysDeleteGlobalFile() - delete a file
- SysDeleteGlobalFiles() - delete the contents of a directory
Folder Management
- SysLookupFolder - lookup a folder given it's path
- SysCreateFolder - create a folder
- SysMoveFolder - move a folder
- SysRenameFolder - rename a folder
- SysDeleteFolder - delete a folder
📄️ CheckFilenameExists
Overview
📄️ CheckFullpathFilenameExists
Overview
📄️ GetFileInfo
Overview
📄️ GetFileInfoSimple
Overview
📄️ GetGlobalCDNUrl
Overview
📄️ GetGlobalFileList
Overview
📄️ SysCopyGlobalFile
Overview
📄️ SysCreateFolder
Overview
📄️ SysDeleteFolder
Overview
📄️ SysDeleteGlobalFile
Overview
📄️ SysDeleteGlobalFiles
Overview
📄️ SysGetFileInfo
Overview
📄️ SysGetFileInfoSimple
Overview
📄️ SysGetGlobalCDNUrl
Overview
📄️ SysGetGlobalFileList
Overview
📄️ SysLookupFolder
Overview
📄️ SysMoveFolder
Overview
📄️ SysMoveGlobalFile
Overview
📄️ SysMoveToGlobalFile
Overview
📄️ SysRenameFolder
Overview