Change Multer Path

This commit is contained in:
naibo 2023-07-09 11:11:36 +08:00
parent cc1ed500fb
commit f45130675b
2 changed files with 2 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -75,7 +75,7 @@ exports.getEasySpiderLocation = getEasySpiderLocation;
FileMimes = JSON.parse(fs.readFileSync(path.join(__dirname,'mime.json')).toString());
const fileServer = express();
const upload = multer({ dest: 'Data/' });
const upload = multer({ dest: path.join(getDir(), 'Data/') });
fileServer.use(cors());
fileServer.post('/excelUpload', upload.single('file'), (req, res) => {