TTMSFNCCustomCloudDropBox Class
Base storage component that connects to a DropBox account and exposes file and folder operations such as listing, search, upload, download, delete, move, rename, folder creation, and link or share generation, with both synchronous and promise-based variants.
API unit family: TMSFNCCloudDropBox
Inherits from: TTMSFNCCloudStorage
Syntax
TTMSFNCCustomCloudDropBox = class(TTMSFNCCloudStorage)
Remarks
This is the non-published base class; use the published TTMSFNCCloudDropBox component on a form. Authentication is configured through the inherited authentication settings before any operation is called.
Properties
| Name | Description |
|---|---|
| DDrive | Read-only root collection holding the items retrieved from the account. |
| Info | Account information for the connected user, populated by GetAccountInfo and GetDriveInfo. |
| Mode | Root scope the component operates against. |
| PromiseFileInfo | Read-only item holding the file metadata retrieved by the most recent promise-based file-info request. |
Methods
| Name | Description |
|---|---|
| CreateFolder | Creates a new folder. |
| CreateFolderPromise | Promise-based variant of CreateFolder. |
| Delete | Deletes an item. |
| Download | Downloads an item to a local file. |
| DownloadFolderAsZip | Downloads a folder and its contents as a single ZIP archive. |
| GetAccountInfo | Requests the connected account's information, raising OnGetCurrentAccount when the result is available. |
| GetAccountInfoPromise | Promise-based variant of GetAccountInfo. |
| GetDriveInfo | Requests the account's storage usage, raising OnGetSpaceUsage when the result is available. |
| GetFileByID | Retrieves a single item by its provider identifier. |
| GetFileInfo | Requests metadata for a single file, raising OnGetFileInfo when the result is available. |
| GetFileInfoPromise | Promise-based variant of GetFileInfo. |
| GetFolderInfo | Requests the contents of a folder, raising OnGetFolderInfo when the request finishes. |
| GetFolderInfoPromise | Promise-based variant of GetFolderInfo. |
| GetFolderList | Lists the immediate contents of a folder. |
| GetFolderListHierarchical | Lists a folder and recursively its sub-folders. |
| GetFolderListHierarchicalPromise | Promise-based variant of GetFolderListHierarchical. |
| GetFolderListPromise | Promise-based variant of GetFolderList. |
| GetLink | Requests a temporary download link for an item, raising OnGetLink when the link is available. |
| GetLinkPromise | Promise-based variant of GetLink. |
| GetShare | Requests a public share URL for an item, raising OnGetShare when the URL is available. |
| GetSharePromise | Promise-based variant of GetShare. |
| GetTestTokensResult | Determines whether a token-test request succeeded. |
| MoveFile | Moves an item into a target folder. |
| MoveFileToRoot | Moves an item to the account root. |
| RenameFile | Renames an item. |
| Search | Searches a folder for items matching a query. |
| SearchList | Searches for items matching a query and returns the result list. |
| SearchListPromise | Promise-based variant of SearchList. |
| SearchPromise | Promise-based variant of Search. |
| Test | Runs a built-in connectivity check against a sample account path. |
| TestTokens | Validates the current access token by requesting the connected account. |
| Upload | Uploads a local file into a folder. |