diff options
Diffstat (limited to 'bucky/util/upload.js')
| -rw-r--r-- | bucky/util/upload.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bucky/util/upload.js b/bucky/util/upload.js index d92183e..242acf0 100644 --- a/bucky/util/upload.js +++ b/bucky/util/upload.js @@ -39,7 +39,7 @@ module.exports.put = function (opt) { filename = uuid.v1() + "." + extension; } - var remote_path = "/" + opt.dirname + "/" + filename + var remote_path = opt.dirname + filename if (types && ! extension) { err = "Unacceptable filetype." @@ -55,8 +55,8 @@ module.exports.put = function (opt) { } opt.acceptable && opt.acceptable(err) - - // console.log("upload >", remote_path) + + console.log("upload >", remote_path) s3.putBuffer(file.buffer, remote_path, { 'Content-Length': file.size, 'Content-Type': file.mimetype, |
