Turistforeningen / node-s3-uploader

Flexible and efficient resize, rename, and upload images to Amazon S3 disk storage. Uses the official AWS Node SDK for transfer, and ImageMagick for image processing. Support for multiple image versions targets.
https://www.npmjs.com/package/s3-uploader
MIT License
241 stars 54 forks source link

Set absolute path when uploadeding image #47

Closed Starefossen closed 8 years ago

Starefossen commented 8 years ago

This PR allows you to set the absolute path when uploading an image. NB! This disables the random path. The final path to a version image follows the following rule: prefix + path + suffix + ext

var client = new Uploader('my-s3-bucket');

client.upload('/my/awsome/image.jpg', {
  path: 'custom/your/path/new_filename'
});

Signed-off-by: Hans Kristian Flaatten hans.kristian.flaatten@turistforeningen.no