Skip to content

Commit

Permalink
Merge pull request #2 from cemerick/master
Browse files Browse the repository at this point in the history
don't prepend the bucket name to the file's path
  • Loading branch information
sclasen committed Feb 18, 2012
2 parents 37346cf + 747b785 commit 5072645
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private String getDestinationPath(String destination) {
@Override
protected void putResource(File source, String destination, TransferProgress progress) throws S3ServiceException, IOException {
buildDestinationPath(getDestinationPath(destination));
S3Object object = new S3Object(this.bucket + destination);
S3Object object = new S3Object(this.basedir + destination);
object.setAcl(AccessControlList.REST_CANNED_PRIVATE);
object.setDataInputFile(source);
object.setContentLength(source.length());
Expand Down

0 comments on commit 5072645

Please sign in to comment.