multer icon indicating copy to clipboard operation
multer copied to clipboard

Should allow absent/empty filename

Open LinusU opened this issue 8 years ago • 6 comments

As far as I can tell from reading RFC7578 Section 4.2 the filename is not mandatory. Currently multer ignores files without a filename, relevant code here.

I think that this should be addressed, though I'm not sure if we should set originalname to an empty string or to undefined...

This might possibly be a breaking change as well, I'll start by fixing it in the 2.x beta...

LinusU avatar Feb 02 '17 08:02 LinusU

Fixed in v2.0.0-alpha.5

LinusU avatar Feb 14 '17 20:02 LinusU

I would very much like to use multer but I can't right now because some clients upload files without filename. When will the final version be released :sweat_smile:?

ahimta avatar Jan 30 '19 11:01 ahimta

I would recommend using the alpha versions, they should be stable and I know a few companies that uses them in production ☺️

LinusU avatar Feb 12 '19 18:02 LinusU

Is using the alpha versions still considered stable enough for production use? It's been 5 years since that was said, so I wanted to ask to be safe. And is there any news on this making it to a stable release at some point? We have clients who almost never send file names which prevents us from using multer and instead use our own parser, but that becomes a bit of a hassle since we need to implement this on multiple services

jonbarrow avatar Apr 28 '24 17:04 jonbarrow