Skip to content

Commit

Permalink
Merge pull request #176 from Uplace/0.1.8.1-SNAPSHOT
Browse files Browse the repository at this point in the history
0.1.8.1 snapshot
  • Loading branch information
arnaugarcia committed May 8, 2018
2 parents 6dccd92 + bb552e4 commit 24fd436
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .ebextensions/commands.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
commands:
command name: permisions
command: chmod o+x /tmp
ignoreErrors: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uplace",
"version": "0.1.8-SNAPSHOT",
"version": "0.1.8.1-SNAPSHOT",
"description": "Description for uplace",
"private": true,
"license": "GPL-3.0",
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.arnaugarcia.uplace</groupId>
<artifactId>uplace</artifactId>
<version>0.1.8-SNAPSHOT</version>
<version>0.1.8.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>Uplace</name>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public Map uploadImage(Photo photo) {
}
String folder = photo.getProperty().getReference();
Map params = ObjectUtils.asMap("public_id", photo.getProperty().getReference() + "/" + photoId);
File file = new File("uplace_" + photoId);
File file = new File("/tmp/uplace_" + photoId);
try {
FileUtils.writeByteArrayToFile(file, photo.getPhoto());
Map imgUpload = cloudinary.uploader().upload(file, params);
Expand Down

0 comments on commit 24fd436

Please sign in to comment.