Hello,
I use the following code to upload files in Dropbox.
The problem is that the user wants to backup the same files every day.
About half a year ago Dropbox renamed the old files on it own, but now we noticed if there is no file in the destination directory, the new file is uploaded, but if there is a previous version (with the same name), the Dropbox doesn't do anything (in other words the old file remains).
It seems to me that the Dropbox behaviour changed.
How can I modify my code so as it will always upload the new file and the old file would also remain there? Thank you!
The problem is that the user wants to backup the same files every day.
About half a year ago Dropbox renamed the old files on it own, but now we noticed if there is no file in the destination directory, the new file is uploaded, but if there is a previous version (with the same name), the Dropbox doesn't do anything (in other words the old file remains).
It seems to me that the Dropbox behaviour changed.
How can I modify my code so as it will always upload the new file and the old file would also remain there? Thank you!
var
nci: TTMSFMXCloudItem;
di : TDropBoxItem;
Begin
ProgressBar.Value := 0;
ProgressBar.Visible := true;
IsUploading := true;
di := TDropBoxItem.Create(nil);
di.Path := sFelhosKonyvtar;
nci := Storage.Upload(di, sAllomany );
ProgressBar.Visible := false;
IsUploading := true;
if Assigned(nci) then
CloudTreeViewAdapter.InitTreeView;
End;