Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set absolute path when uploadeding image #47

Closed
wants to merge 1 commit into from

Conversation

Starefossen
Copy link
Contributor

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

@Starefossen Starefossen self-assigned this Oct 14, 2015
@Starefossen Starefossen added this to the v1.1.0 milestone Oct 14, 2015
Set absolute path for uploaded image. This disables the random path.
The final path to a version image follows the following rule:

  prefix + path + suffix + ext

PR-URL: #47

Close: #36 #38

Related: #46

Signed-off-by: Hans Kristian Flaatten <hans.kristian.flaatten@turistforeningen.no>
@Starefossen Starefossen force-pushed the feature/upload-absolute-path branch from 2d4da1e to 30e285c Compare October 14, 2015 18:05
Starefossen pushed a commit that referenced this pull request Oct 14, 2015
Set absolute path for uploaded image. This disables the random path.
The final path to a version image follows the following rule:

  prefix + path + suffix + ext

PR-URL: #47

Close: #36 #38

Related: #46

Signed-off-by: Hans Kristian Flaatten <hans.kristian.flaatten@turistforeningen.no>
@Starefossen Starefossen deleted the feature/upload-absolute-path branch October 15, 2015 08:47
Starefossen pushed a commit that referenced this pull request Oct 28, 2015
Set absolute path for uploaded image. This disables the random path.
The final path to a version image follows the following rule:

  prefix + path + suffix + ext

PR-URL: #47

Close: #36 #38

Related: #46

Signed-off-by: Hans Kristian Flaatten <hans.kristian.flaatten@turistforeningen.no>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant