- Home [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
- Getting started
- Use cases
-
API
- Object types
- Data types
-
Global constants
- Application
- ApplicationUserProfile
- ApplicationWithBatcher
- ApplicationWithParams
- BrandingSettings
- CompanyInfo
- Converter
- Directories
- Files
- HttpApiHandler
- HttpApiRequest
- ICache
- IStorage
- MailMessage
- Mailbox
- OrganisationStructure
- OrganisationStructureTree
- Portal
- PortalPageInfo
- PortalSettings
- Portals
- Process
- Processes
- ProductionSchedule
- Reminders
- Replacements
- Serial
- ServerCollection
- Service
- SignupUrlParams
- SystemCollections
- SystemCollectionsWithEvents
- SystemCollectionsWithFilterEvents
- Templater
- Translator
- UserGroups
- Users
- Watermarks
- Report
- Reports
- SR
- Work with apps
- Web requests
- Access permissions
- Document flow
- Live Chats
- “Code” widget
- Signatures
- Business calendars
- Integration with IP telephony
- Integration with email marketing services
Files
Object that is used to work with files. This class allows you to search for files or create temporary ones.
Hierarchy
Methods
createTemporary
The method creates a temporary file.
You can temporarily upload a file to the system to use it in an app or a process. If the file is not used in 60 minutes, it will be automatically deleted. In the example you can see how to create a file using its content stored as a byte array. The context stores the
newName
field (the name that will be assigned to the file).const fileData: ArrayBuffer; // ... const newTmpFile = await System.files.createTemporary( Context.data.newName, fileData);
Parameters
name: string
body: ArrayBuffer
Returns Promise<FileItem>
Temporary file model.
search
The method is used to search for files on the disk.
You can use this method to:
const position = await System.files.search().where(f => f.__id.eq('<some id>')).first();
Returns FilesSearch
Object to create a file search request.
Methods