TTMSFNCCloudDropBox
Usage
A component that provides access to the DropBox service. It allows to read, create and delete folders as well as read, upload, move, rename, download and delete files.
Authorization information
Client ID, Client Secret, CallBack URL
Properties
Property name | Description |
---|---|
Drive | A list of files and folders. |
Info | Account info |
Mode | Switch between Sandbox and Root mode |
UploadMode | Selects what to do when uploading a file that already exists. Switch between Add and OverWrite mode. Set to umAdd to rename the uploaded file, umOverwrite to replace the existing file. |
Methods
Method name | Description |
---|---|
CreateFolder | Create a new folder |
Delete | Delete a file or folder from the drive |
Download | Download a file from the drive |
DownloadFolderAsZip | Download all files in a given folder as a single zip file (some limitations to the number of files and total file size apply) |
GetAccountInfo | Retrieve the account info |
GetFolderList | Retrieve the list of files and folders for the root folder or a specific folder |
GetFolderListHierarchical | Retrieve the list of files and folders for specific folder and add them to the DDrive list |
GetLink | Retrieve a direct link to a file |
GetShare | Retrieve a share URL to a file or folder |
Search | Search for files and folders based on a query. Options: - ExactMatch: indicate if the query should match the filename exactly - FileNameOnly: indicate if the search applies to the filename only or also to the contents of the file - FileExtensions: only return files that have one of the given extensions - Folder: only return results for files in this folder |
Upload | Upload a file to the drive Options: Folder: Optionally provide a folder where the file is uploaded, otherwise the file is uploaded in the root folder. |
UploadResumableFile | Upload a file to the drive in chunks. The upload is resumable and supports large files (multiple GB) Options: Folder: Optionally provide a folder where the file is uploaded, otherwise the file is uploaded in the root folder |
MoveFile | Move a file to a different folder |
MoveFileToRoot | Move a file to the root folder |
RenameFile | Rename an existing file |
Note
Uploading a file that already exists will not have any effect if the file content is identical. Regardless of the UploadMode setting.
Sample
See TTMSFNCCloudStorageServices for sample code