Uploading the same file creates a duplicate


I upload in Dropbox using this code:

 di : TDropBoxItem;
  di := TDropBoxItem.Create(nil);
  di.Path := '/Test/Videos/video1';

  MainForm.Storage.Upload(di, 'e:\something\xxxx\MyWordDoc.docx' );

The problem is that when I call a second time, instead of replacing it, it creates a second file named MyWordDoc (1).docx

Isn't an option to set an overwrite mode?
(If I just drag and drop the same file onto the Dropbox folder it doesn't duplicate, it replaces the original file, this is what I need to get too).

Thank you very much for your help!


A new property (UploadMode) was added to the TTMSFMXCloudDropBox control that lets you decide what happens if a file is uploaded with a filename that already exists.

You can now choose to overwrite the existing file or create a new file.
The update will be available with the next release of the TMS VCL Cloud Pack.

Thank you very much!