mirror of https://gitee.com/bigwinds/arangodb
Doc - Fixx Foxx Files example
This commit is contained in:
parent
5b8da9cc9f
commit
431537d352
|
@ -93,7 +93,7 @@ as a `Buffer` to a base64-encoded string:
|
||||||
router.post('/avatars/:filename', (req, res) => {
|
router.post('/avatars/:filename', (req, res) => {
|
||||||
collection.save({
|
collection.save({
|
||||||
filename: req.pathParams.filename,
|
filename: req.pathParams.filename,
|
||||||
data: req.body.toString('base64');
|
data: req.body.toString('base64')
|
||||||
});
|
});
|
||||||
res.status('no content');
|
res.status('no content');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue