app.use(bodyParser.json({
limit: '50mb'
}));
app.use(bodyParser.urlencoded({
limit: '50mb',
parameterLimit: 100000,
extended: true
}));
app.use(express.urlencoded({ extended: true, limit: "50mb" }));
app.use(express.json({ limit: "50mb" }));
// SERVER:
const bodyParser = require('body-parser')
var jsonParser = bodyParser.json({limit:1024*1024*10, type:'application/json'});
var urlencodedParser = bodyParser.urlencoded({ extended:true,limit:1024*1024*10,type:'application/x-www-form-urlencoded' });
app.use(jsonParser);
app.use(urlencodedParser);
//external:
app.use(bodyParser.urlencoded({extended: true}));
app.use(express.json());
//----------------------------------------------------------------------------
// AXIOS:
const request_config = {
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
data: buffer
};
axios.post("http://localhost:4000/api/speech", request_config)
app.use(bodyParser.json({
limit: '50mb'
}));
app.use(bodyParser.urlencoded({
limit: '50mb',
parameterLimit: 100000,
extended: true
}));
app.use(express.urlencoded({ extended: true, limit: "50mb" }));
app.use(express.json({ limit: "50mb" }));
// SERVER:
const bodyParser = require('body-parser')
var jsonParser = bodyParser.json({limit:1024*1024*10, type:'application/json'});
var urlencodedParser = bodyParser.urlencoded({ extended:true,limit:1024*1024*10,type:'application/x-www-form-urlencoded' });
app.use(jsonParser);
app.use(urlencodedParser);
//external:
app.use(bodyParser.urlencoded({extended: true}));
app.use(express.json());
//----------------------------------------------------------------------------
// AXIOS:
const request_config = {
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
data: buffer
};
axios.post("http://localhost:4000/api/speech", request_config)