调整更新文档,不要挂载持久化 (#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:
Archer
2024-03-27 13:47:16 +08:00
committed by GitHub
parent 6b7b03c245
commit 9e193b16a1
2 changed files with 5 additions and 37 deletions

View File

@@ -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}`);