I can't find the documentation for DropboxClient.files.upload() at SwiftyDropbox Reference.
I would like to know if that method overwrites the file if one exists in the designated path.
You can find the documentation for all of the upload methods here:
https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/FilesRoutes.html#/s:FC13SwiftyDropbox11FilesRoutes6uploadFT4pathSS4modeOCS_5Files9WriteMode10autorenameSb14clientModifiedGSqV10Foundation4Date_4muteSb14propertyGroupsGSqGSaCCS_14FileProperties13PropertyGroup__5inputVS3_4Data_GCS_13UploadRequestCS1_22FileMetadataSerializerCS1_21UploadErrorSerializer_
You can use the 'mode' parameter to control the write mode, i.e., what to do when there is already a file at the destination path, etc.