Skip to content

Commit

Permalink
New release
Browse files Browse the repository at this point in the history
  • Loading branch information
asafdav committed Jan 27, 2014
1 parent 8e79f10 commit 0559dc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build/ng-s3upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ angular.module('ngS3upload.directives', []).
scope.$apply(function () {
S3Uploader.getUploadOptions(opts.getOptionsUri).then(function (s3Options) {
ngModel.$setValidity('uploading', false);
var s3Uri = 'https://' + bucket + '.s3.amazonaws.com/' + opts.folder;
var key = (new Date()).getTime() + '-' + S3Uploader.randomString(16) + "." + ext;
var s3Uri = 'https://' + bucket + '.s3.amazonaws.com/';
var key = opts.folder + (new Date()).getTime() + '-' + S3Uploader.randomString(16) + "." + ext;
S3Uploader.upload(scope,
s3Uri,
key,
Expand Down
4 changes: 2 additions & 2 deletions build/ng-s3upload.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0559dc9

Please sign in to comment.