require
require copied to clipboard
Request entity too large
When trying to put a file using formData I get a 413 Request Entity too large
Here is my form data:
const formData = { file: { value: req.file.buffer, options: { filename: req.file.originalname, contentType: req.file.mimetype } }, metadata: req.body.metadata };
Options:
const options = { url:
${SAFENED_API}/verifications/${verificationId}/kyc, headers: { 'Authorization': req.headers.authorization }, formData: formData };
And request:
request.put(options, (err, httpResponse, body) => { if (!err) { console.log(body); //const result = result.concat(JSON.parse(body)); } });