expressjs / multer

Node.js middleware for handling `multipart/form-data`.
MIT License
11.61k stars 1.06k forks source link

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined #930

Closed kabundege closed 2 years ago

kabundege commented 4 years ago

issue Description ?

I'm trying this


import multer from 'multer';

const storage = multer.memoryStorage(); const multerUploads = multer({ storage }).single('image');



> but I get this error
![Capture](https://user-images.githubusercontent.com/50319826/90578705-4541c800-e1c4-11ea-8618-ac8536b47647.JPG)
pm-sharma commented 2 years ago

@kabundege any solution on this?

LinusU commented 2 years ago

The error originates from DataURIParser.encode from the datauri package. I don't see that this is caused by Multer...