rex_backendless_files
Introduction
Files stored in backendless serivice.
Files stored in backendless serivice.
Usage
Upload
Call one of these actions to upload data
Otherwise "Condition:On upload error" will be triggered while uploading failed, get error message by "Expression:ErrorMessage".
Call one of these actions to upload data
- Action:Upload data URL (sample capx)
- Action:Upload from sprite (sample capx)
- Action:Upload from file chooser (sample capx), supports multiple files uploading.
- Action:Upload string (sample capx)
Otherwise "Condition:On upload error" will be triggered while uploading failed, get error message by "Expression:ErrorMessage".
Download
Get download URL by "Expression:DownloadURL".
Get download URL by "Expression:DownloadURL".
- Expression:DownloadURL , return the root url of files storage.
- Expression:DownloadURL( directoryPath ) , return url of the directory path.
- Expression:DownloadURL( directoryPath , fileName ) , return url of a specific file.
Access control allow origin
Reference
By default a Backendless backend data is available for all domains. This can be restricted using Backendless console.
Reference
By default a Backendless backend data is available for all domains. This can be restricted using Backendless console.
1. setting list condition:
Sets listing directory path by "Action:Set directory", add file name filter by "Action:Set pattern", default filter is "*.*" to get all files.
Sets listing directory path by "Action:Set directory", add file name filter by "Action:Set pattern", default filter is "*.*" to get all files.
2. send request
Call one of these actions to get files list
- Page by page, lines of each page is set by property "Line".
Call one of these actions to get files list
- Page by page, lines of each page is set by property "Line".
- Action:Request to page
- Action:Request current page
- Action:Request next page
- Action:Request previous page
- Action:Request in a range
- Action:Request all
3. get result
"Condition:On get files list" will be triggered when getting files list success, otherwise "Condition:On get files list error" will be triggered.
"Condition:On get files list" will be triggered when getting files list success, otherwise "Condition:On get files list error" will be triggered.
4. retrieve files list
Uses "Condition:For each files" to retrieve files by these expressions
Uses "Condition:For each files" to retrieve files by these expressions
- Expression:CurFileName
- Expression:CurPublicUrl , download url of this file
- Expression:CurDirectory
- Expression:CurCreated , created timestamp
- Expression:CurFileSize , file size in bytes
- Expression:Index2FileName( index )
- Expression:Index2PublicUrl( index )
- Expression:Index2Directory( index )
- Expression:Index2Created( index )
- Expression:Index2FileSize( index )
Copy, Move, or Rename
Call "Action:Copy", "Action:Move", , or "Action:Rename" to move, copy, or rename file or directory.
"Condition:On copy", "Condition:On move", "Condition:On rename" will be triggered when action executing success, get download url of this file by "Expression:LastDownloadURL".
Otherwise "Condition:On copy error", "Condition:On move error", "Condition:On rename error" will be triggered, get error message by "Expression:ErrorMessage".
Call "Action:Copy", "Action:Move", , or "Action:Rename" to move, copy, or rename file or directory.
"Condition:On copy", "Condition:On move", "Condition:On rename" will be triggered when action executing success, get download url of this file by "Expression:LastDownloadURL".
Otherwise "Condition:On copy error", "Condition:On move error", "Condition:On rename error" will be triggered, get error message by "Expression:ErrorMessage".
Delete
Call "Action:Detete" to delete file at a specific storage reference.
"Condition:On deleted" will be triggered while deleting action completed, otherwise "Condition:On deleted error" will be triggered. Get error message by "Expression:ErrorMessage".
Call "Action:Detete" to delete file at a specific storage reference.
"Condition:On deleted" will be triggered while deleting action completed, otherwise "Condition:On deleted error" will be triggered. Get error message by "Expression:ErrorMessage".