mirror of
https://github.com/status-im/codimd.git
synced 2025-01-12 05:14:27 +00:00
fix #284
This commit is contained in:
parent
5bb3de2675
commit
c8bcc4c1c3
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…
x
Reference in New Issue
Block a user