I get this warning when seding buffer:
(node:12) ExperimentalWarning: buffer.File is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Here the code, how can I make it right, not get the Node.js warning?
const blob = new Blob([xml], { type: 'text/plain' })
const formData = new FormData()
formData.append('action-xmlagentxmlfile', blob, 'xmlfile.xml')
const response = await fetch(`https://www.szamlazz.hu/szamla/`, {
method: 'POST',
body: formData,
})
const text = await response.text()
await db.collection('logs').insertOne({
service: 'prepareAndSendInvoice',
createdAt: new Date(),
severity: 'log',
message: 'Sending invoice response received',
status: response.status,
text,
})
if (response.status === 200 && !response.headers.has('szlahu_error')) {