I'm trying to obtain a BLOB from a request. The request object is constructed using FormData in Angular.
const buffer = fs.readFileSync(fileFromRequest);
The code above returns an error:
Error: ENOENT: no such file or directory, open '[object File]'
I can't find any resource to read/parse [object File].
Hope you guys can help me on this. Many thanks!
fs.readFileSyncthis will look for a file at that path