Skip to content

Commit 227ae6e

Browse files
author
Amir Tocker
committed
Update Google App Engine demo
1 parent d82eddc commit 227ae6e

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ cloudinary-parent-1.4.2 / 2016-05-16
55
* Sent params as entities for PUT, POST
66
* Use "_method" with "delete" instead of HttpDelete.
77
* Add `next_cursor` to `Api#transformation()`
8+
* Update Google App Engine demo
89
* Add script to create unsigned upload preset for the Android test
910
* Use dynamic tag in sprites test
1011
* Add SDK_TEST_TAG to all resources being created.

samples/photo_album_gae/pom.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<name>photo_album_gae</name>
99

1010
<properties>
11-
<spring.version>3.2.0.RELEASE</spring.version>
11+
<spring.version>3.2.16.RELEASE</spring.version>
1212
<appengine.app.version>1</appengine.app.version>
13-
<appengine.target.version>1.8.9</appengine.target.version>
13+
<appengine.target.version>1.9.37</appengine.target.version>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
</properties>
1616

@@ -38,7 +38,12 @@
3838
<dependency>
3939
<groupId>com.cloudinary</groupId>
4040
<artifactId>cloudinary-taglib</artifactId>
41-
<version>1.1.0</version>
41+
<version>1.4.1</version>
42+
</dependency>
43+
<dependency>
44+
<groupId>com.cloudinary</groupId>
45+
<artifactId>cloudinary-http42</artifactId>
46+
<version>1.4.1</version>
4247
</dependency>
4348
<dependency>
4449
<groupId>org.springframework</groupId>

samples/photo_album_gae/src/main/java/cloudinary/controllers/PhotoController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public String uploadPhoto(@ModelAttribute PhotoUpload photoUpload, BindingResult
5555
ObjectUtils.asMap("resource_type", "auto"));
5656

5757
photoUpload.setPublicId((String) uploadResult.get("public_id"));
58-
photoUpload.setVersion((Long) uploadResult.get("version"));
58+
photoUpload.setVersion(((Integer) uploadResult.get("version")).longValue());
5959
photoUpload.setSignature((String) uploadResult.get("signature"));
6060
photoUpload.setFormat((String) uploadResult.get("format"));
6161
photoUpload.setResourceType((String) uploadResult.get("resource_type"));
@@ -87,4 +87,4 @@ public String directUploadPhotoForm(ModelMap model) {
8787
model.addAttribute("photo", new PhotoUpload());
8888
return "direct_upload_form";
8989
}
90-
}
90+
}

0 commit comments

Comments
 (0)