Skip to content

Commit 92dd4f3

Browse files
authored
Merge pull request #9 from wizpanda/fixes
Added a field to mark stored file for deletion, using AWS S3 v4 Signature
2 parents 70f0d02 + a0a71ce commit 92dd4f3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
}
99
}
1010

11-
version "0.1.1"
11+
version "0.1.2"
1212
group "com.wizpanda.plugins"
1313

1414
apply plugin: "eclipse"

grails-app/domain/com/wizpanda/file/StoredFile.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import grails.util.Holders
44

55
class StoredFile {
66

7+
boolean markedForDeletion
8+
79
String originalName
810
String name
911
String url

src/main/groovy/com/wizpanda/file/service/AmazonS3UploaderService.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class AmazonS3UploaderService extends UploaderService {
2121
* TODO https://github.com/aws/aws-sdk-java/issues/740
2222
* TODO Planned to be released in https://github.com/jclouds/jclouds/pull/678
2323
*/
24-
//System.setProperty("com.amazonaws.services.s3.enableV4", "true")
24+
System.setProperty("com.amazonaws.services.s3.enableV4", "true")
2525
}
2626

2727
@Override

0 commit comments

Comments
 (0)