clineamb / gulp-s3-upload

A gulp task to upload/update assets to an S3 account.
62 stars 37 forks source link

Adding support for custom Keys #36

Closed subinsebastien closed 8 years ago

subinsebastien commented 8 years ago

This is necessary since, in uses cases like, uploading multiple resized versions of images into an s3 bucket, a rename system wont work, since gulp will add its own key. Just need the key filtering removed.

clineamb commented 8 years ago

You could do a check with the keyTransform method. Also, if I'm inferring correctly, this use-case is the one you reference in #37? If so, I would do the resizing first and have a separate upload task read from the folder that the resized images are being saved to. The gulp-s3-upload gulp plugin uses the relative file name unless the keyTransform method is overwritten.

Check out these lines in the source code for some reference on what is being sent through to the keyTransform method.

clineamb commented 8 years ago

@subinsebastien Did you ever find a solution to this?