feat: import assets from disk module

This commit is contained in:
NGPixel
2019-10-20 14:42:10 -04:00
parent 186174f8fe
commit f1668b9ac5
4 changed files with 106 additions and 49 deletions

View File

@@ -88,6 +88,7 @@ router.post('/u', multer({
// Process upload file
await WIKI.models.assets.upload({
...fileMeta,
mode: 'upload',
folderId: folderId,
assetPath,
user: req.user