0👍
strangely, this was fixed when I added a middleware on the express backend:
const express = require('express');
const multer = require('multer');
const app = express();
const upload = multer({
dest: './uploads/'
})
app.post('/upload', upload.single('file'), (req, res) => {
res.json({received: 'yes'})
})
app.listen(3344, () => console.log("running on localhost:3344"))
I still don’t know why it doesn’t work without the middleware in firefox, but in safari it does.
Source:stackexchange.com