From 3c1acfab622d470aeb1f44a708d6023530e17ec8 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 10 Dec 2017 21:08:42 +0100 Subject: more desiiiiiiiign --- bucky/util/upload.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bucky/util/upload.js') 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, -- cgit v1.2.3-70-g09d2