diff options
author | Max Wu | 2016-12-18 21:23:18 +0800 |
---|---|---|
committer | GitHub | 2016-12-18 21:23:18 +0800 |
commit | be3aa3bfd50859ca8a310130a99f977fa7537246 (patch) | |
tree | ba1b2eacf4bd172188100c3001279f17377070a4 | |
parent | 5bb3de2675967eb2f6ea295e7c3e969769ed2a70 (diff) | |
parent | c8bcc4c1c3628657efeb101115b5d300b7429bef (diff) |
Merge pull request #285 from horo17/topic/#284-s3-bucket-name
S3 bucket name
Diffstat (limited to '')
-rw-r--r-- | app.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -499,7 +499,7 @@ app.post('/uploadimage', function (req, res) { fs.readFile(files.image.path, function (err, buffer) { var params = { - Bucket: 'hackmd', + Bucket: config.s3bucket, Key: path.join('uploads', path.basename(files.image.path)), Body: buffer }; |