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

2
app.js
View file

@ -499,7 +499,7 @@ app.post('/uploadimage', function (req, res) {
fs.readFile(files.image.path, function (err, buffer) { fs.readFile(files.image.path, function (err, buffer) {
var params = { var params = {
Bucket: 'hackmd', Bucket: config.s3bucket,
Key: path.join('uploads', path.basename(files.image.path)), Key: path.join('uploads', path.basename(files.image.path)),
Body: buffer Body: buffer
}; };