Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed bag with the same file names

  • Loading branch information...
commit 8ac66250c7837b3a3b124a5bd060c587b11e8270 1 parent 8501b0a
@tih-ra authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/alleup.js
  2. +1 −1  package.json
View
2  lib/alleup.js
@@ -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;
View
2  package.json
@@ -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": {
Please sign in to comment.
Something went wrong with that request. Please try again.