The data format that I sent from the frontend to the server is in a string format
Example:
"type": 'application/zip',
"type":"image/png"
"{"id":"4c1vjx4k1",
"name":"test.png",
"type":"image/png",
"size":151805,"metadata":{},
"data":"iVBORw0KGgoAAAANSUhEUg }"
In the server my goal is to convert it back to a file object, because I have to use upload API to send the file object to their server (I'm using cloudinary)
It is written in this link - https://pqina.nl/filepond/docs/patterns/plugins/file-encode/
let fileAsset = Buffer.from(req.body.fileAsset, "base64");
How do I convert it back to a file object?