Merge pull request #285 from horo17/topic/#284-s3-bucket-name

S3 bucket name
This commit is contained in:
Max Wu 2016-12-18 21:23:18 +08:00 committed by GitHub
commit be3aa3bfd5
1 changed files with 1 additions and 1 deletions

2
app.js
View File

@ -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
};