aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/www/Settings.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-12-08 10:36:41 +0300
committerGravatar Vitaly Takmazov2016-12-08 15:24:32 +0300
commit70b1e26036175b78213b4350b0f9a504c6d7e9df (patch)
tree8fc9448977a8eb1e8fc5fab9647b1bc81fc204a3 /juick-www/src/main/java/com/juick/www/Settings.java
parente4f1bdaf728e2189d1002a175fe744b80caf8dee (diff)
juick-www: /post2 from perl
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/Settings.java')
-rw-r--r--juick-www/src/main/java/com/juick/www/Settings.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/www/Settings.java b/juick-www/src/main/java/com/juick/www/Settings.java
index 89eb6718..56cece34 100644
--- a/juick-www/src/main/java/com/juick/www/Settings.java
+++ b/juick-www/src/main/java/com/juick/www/Settings.java
@@ -155,7 +155,7 @@ public class Settings {
info.setCountry(request.getParameter("country"));
info.setUrl(request.getParameter("url"));
info.setDescription(request.getParameter("descr"));
- String avatarTmpPath = Utils.receiveMultiPartFile(request, "avatar");
+ String avatarTmpPath = Utils.receiveMultiPartFile(request.getPart("avatar"));
if (StringUtils.isNotEmpty(avatarTmpPath)) {
String originalExtension = FilenameUtils.getExtension(avatarTmpPath);
String originalName = String.format("%s.%s", visitor.getUid(), originalExtension);