summaryrefslogtreecommitdiff
path: root/bucky/util/upload.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-10 21:08:42 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-10 21:08:42 +0100
commit3c1acfab622d470aeb1f44a708d6023530e17ec8 (patch)
treece596f9190c3fe8bcfba063670a6ec5a5da9d546 /bucky/util/upload.js
parent3cc9ff370a5e3f5bf321dc56963ae3bc73e75284 (diff)
more desiiiiiiiign
Diffstat (limited to 'bucky/util/upload.js')
-rw-r--r--bucky/util/upload.js6
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,