mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
调整更新文档,不要挂载持久化 (#1075)
* fix: plugin update * feat: get current time plugin * fix: ts * perf: select app ux * fix: ts * perf: max w * perf: inform tip * fix: inform * remove deploy doc
This commit is contained in:
@@ -24,9 +24,9 @@ export const getUploadModel = ({ maxSize = 500 }: { maxSize?: number }) => {
|
||||
},
|
||||
preservePath: true,
|
||||
storage: multer.diskStorage({
|
||||
destination: (_req, _file, cb) => {
|
||||
cb(null, tmpFileDirPath);
|
||||
},
|
||||
// destination: (_req, _file, cb) => {
|
||||
// cb(null, tmpFileDirPath);
|
||||
// },
|
||||
filename: async (req, file, cb) => {
|
||||
const { ext } = path.parse(decodeURIComponent(file.originalname));
|
||||
cb(null, `${getNanoid()}${ext}`);
|
||||
|
Reference in New Issue
Block a user