mirror of
https://github.com/NaiboWang/EasySpider.git
synced 2025-04-20 22:15:08 +08:00
Change Multer Path
This commit is contained in:
parent
cc1ed500fb
commit
f45130675b
File diff suppressed because one or more lines are too long
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user