diff options
author | Vitaly Takmazov | 2017-06-20 09:41:28 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-06-20 15:43:58 +0300 |
commit | 7d75cabd9ea4c80348d5e98ac08347a204c60fc4 (patch) | |
tree | f46239dcf07bf3c1fe523faed998bc057fb7fe98 /juick-server/src/main/java/com/juick/server | |
parent | c803d6ac3db2a76508058812accd3b1748caab69 (diff) |
mail wip
Diffstat (limited to 'juick-server/src/main/java/com/juick/server')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/util/HttpUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/util/HttpUtils.java b/juick-server/src/main/java/com/juick/server/util/HttpUtils.java index c305093c..31a68962 100644 --- a/juick-server/src/main/java/com/juick/server/util/HttpUtils.java +++ b/juick-server/src/main/java/com/juick/server/util/HttpUtils.java @@ -81,7 +81,7 @@ public class HttpUtils { throw new Exception("Wrong file type"); } - attachmentFName = UUID.randomUUID().toString() + "." + attachmentType; + attachmentFName = DigestUtils.md5Hex(UUID.randomUUID().toString()) + "." + attachmentType; fos = new FileOutputStream(Paths.get(tmpDir, attachmentFName).toString()); byte[] buffer = new byte[10240]; int len; |