Dropbox Delphi Component
- Brand: Sync-Components
- Product Code: Cloud Delphi Component
- Availability: In Stock
Dropbox Delphi component is a non-visual Delphi component that allows you to work with the data stored in Dropbox using Delphi. The component works directly with the service using official Dropbox API v2. Official API use guarantees maximum compatibility and fewest possible modifications to future versions.
Features
- Access to account and file/folder info
- Create and edit folders
- Upload, update and download files
- Move and copy files between folders
- Rename and delete files
- Share files and folders
- Get Delta info
- Proxy servers support
Examples
Connecting to Dropbox and showing list of folders and files in treeview.
procedure Browse(Parent: TTreeNode = nil);
var
FFileInfo: TDFileInfo;
CurNode: TTreeNode;
Path: String;
begin
if Parent = nil then
Path := '/'
else
Path := TDFileInfo(Parent.Data).Path;
if Dropbox.FindFirst(FFileInfo, Path) = 0 then
repeat
if Parent = nil then
CurNode := TreeView.Items.AddChildObject(TreeView.Items.GetFirstNode,
ExtractDName(FFileInfo.Path), FFileInfo)
else
CurNode := TreeView.Items.AddChildObject(Parent,
ExtractDName(FFileInfo.Path), FFileInfo);
if FFileInfo.IsDir then
Browse(CurNode);
until Dropbox.FindNext(FFileInfo) <> 0;
end;
Uploading Document.doc to Path folder.
Stream := TFileStream.Create('Document.doc', fmOpenRead);
try
Dropbox.Upload(Stream, Path + 'Document.doc');
finally
Stream.Free;
end;
Deleting file with FileInfo.
var
FileInfo: TDFileInfo;
begin
FileInfo := ...;
Dropbox.Delete(FileInfo);
Compiled Demo Screenshots
Buy at Tokopedia!
Buy Now!Tags: Dropbox Delphi Component, Sync-Component, Delphi, Cloud Storage & Messaging, Cloud