Skip to content

Commit

Permalink
fixed bag with the same file names
Browse files Browse the repository at this point in the history
  • Loading branch information
tih-ra committed Dec 2, 2011
1 parent 8501b0a commit 8ac6625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/alleup.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Alleup.prototype = {

var _resize = config['variants']['resize'];
var _crop = config['variants']['crop'];
var new_file = Math.round(new Date().getTime()/1000.0);
var new_file = Math.round(new Date().getTime()/Math.floor(Math.random() * 8) + 2);
var ext = this.setExtension(file['type']);
new_file += ext;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Andriy Bazuta <andriy.bazyuta@gmail.com> (http://andriy.bazyuta.me)",
"name": "alleup",
"description": "Flexible way to resize and upload images to Amazon S3 or file system storages",
"version": "0.0.3",
"version": "0.0.5",
"keywords": ["upload", "image", "imagemagick", "amazon", "aws", "s3", "resize", "file"],
"homepage": "https://github.com/tih-ra/alleup",
"repository": {
Expand Down

0 comments on commit 8ac6625

Please sign in to comment.