As you know, Upload API has mode and autorename parameters.
I configured "mode" parameter as "add" and "autorename" parameter as true.
But Dropbox did not return FileMetadata with new name although the same file already existed.
Here is the request and response message.
POST https://content.dropboxapi.com/2/files/upload
Accept-Encoding:identity
Authorization:Bearer <REDACTED>
Connection:Keep-Alive
Content-Type:application/octet-stream
Dropbox-API-Arg:{"path":"\/1601337242.gif","mode":"add","autorename":true,"mute":true}
User-Agent:LibHttp/1.3.8
<Redacted binary file>
HTTP/1.1 200 OK
cache-control:no-cache
Connection:keep-alive
Content-Type:application/json
Date:Fri, 20 Nov 2015 07:05:29 GMT
pragma:no-cache
Server:nginx
Transfer-Encoding:chunked
X-Android-Received-Millis:1448003129783
X-Android-Response-Source:NETWORK 200
X-Android-Selected-Protocol:http/1.1
X-Android-Sent-Millis:1448003127334
X-Dropbox-Request-Id:6ee8daec93154092c45b8e9e170f4c2c
X-Robots-Tag:noindex, nofollow, noimageindex
X-Server-Response-Time:650
{"name": "1601337242.gif", "path_lower": "/1601337242.gif", "id": "id:bw23gp5jSB0AAAAAAAAAgA", "client_modified": "2015-11-20T07:05:29Z", "server_modified": "2015-11-20T07:05:29Z", "rev": "134203ce523", "size": 4707}
Best regards,
Younggon Kim