mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-04 13:18:55 +08:00
fix(plugin-file-manager): remove mkdirp
This commit is contained in:
parent
62eb85de5f
commit
9dabe2fbd6
@ -1,6 +1,5 @@
|
||||
import Application from '@nocobase/server';
|
||||
import serve from 'koa-static';
|
||||
import mkdirp from 'mkdirp';
|
||||
import multer from 'multer';
|
||||
import path from 'path';
|
||||
import { URL } from 'url';
|
||||
@ -113,7 +112,7 @@ export default {
|
||||
return multer.diskStorage({
|
||||
destination: function (req, file, cb) {
|
||||
const destPath = path.join(getDocumentRoot(storage), storage.path);
|
||||
mkdirp(destPath, (err: Error | null) => cb(err, destPath));
|
||||
cb(null, destPath);
|
||||
},
|
||||
filename: getFilename,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user