Merge pull request #285 from horo17/topic/#284-s3-bucket-name
S3 bucket name
This commit is contained in:
commit
be3aa3bfd5
1 changed files with 1 additions and 1 deletions
2
app.js
2
app.js
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue