Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

v2.0.0

Choose a tag to compare

@Starefossen Starefossen released this 24 Jun 10:49
· 20 commits to master since this release
npm install s3-uploader@2.0.0

Breaking Changes:

  • image file size is now returned as bytes #55
  • node-uuid is now default random path generator #60 #52

You can configure s3-uploader to use the old path generator, but be warned that we do not recommend this for production systems with a lot of uploads as it may be prone to collisions.

var upload = new Upload(process.env.AWS_BUCKET_NAME, {
  randomPath: require('@starefossen/rand-path')
});

Major Changes:

  • replace all CoffeeScript with vanilla JavaScript #57 #40
  • rewritten in EcmaScript 6, and require Node.JS v4 #79 #63