diff options
author | Christian Schneppe <christian@pix-art.de> | 2016-06-04 09:56:21 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-06-04 09:56:21 +0200 |
commit | 398eacc0f022aec869cac003e61ced7215c178fa (patch) | |
tree | 69e7d28a0161a3476efc2afd45e83b852c3ca721 /src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java | |
parent | 3233ccdb6526895d3796dfe298d5793359cc192a (diff) |
add first 4 chars to file names
fixes download of multiple files within the same time becauser prosody
doesn't send milliseconds
Diffstat (limited to 'src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java b/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java index 4ec31c915..a3bcbb386 100644 --- a/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java +++ b/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java @@ -93,7 +93,7 @@ public class HttpDownloadConnection implements Transferable { } else { extension = lastPart; } - String filename = fileDateFormat.format(new Date(message.getTimeSent())); + String filename = fileDateFormat.format(new Date(message.getTimeSent()))+"_"+message.getUuid().substring(0,4); message.setRelativeFilePath(filename + "." + extension); this.file = mXmppConnectionService.getFileBackend().getFile(message, false); String reference = mUrl.getRef(); |