multer icon indicating copy to clipboard operation
multer copied to clipboard

Supporting PUT requests?

Open ItalyPaleAle opened this issue 12 years ago • 11 comments

In multer/Express 4 support for PUT requests has been removed. Multer should parse PUT requests as well as POST ones.

ItalyPaleAle avatar Mar 19 '14 17:03 ItalyPaleAle

:+1:

nfroidure avatar Apr 15 '14 14:04 nfroidure

:+1:

gplancke avatar Apr 15 '14 14:04 gplancke

Thanks for bringing it to notice and fixing it guys!

hacksparrow avatar May 04 '14 08:05 hacksparrow

Thanks for the patch, but I'm not sure this is completely fixed! Indeed, this keeps supporting only multipart/form-data encoded requests. PUT requests instead often have in the body just te contents!

ItalyPaleAle avatar May 04 '14 15:05 ItalyPaleAle

I had originally intended Multer to handle ONLY multipart POST data, as there was no middleware to handle this specific data. Issue #17 also needs to be addressed. It's time to revise Multer.

hacksparrow avatar May 04 '14 18:05 hacksparrow

Now that Express 4 is out, I think you should consider that. Issue #17 is one thing, but I would also add support for XML and JSON requests too, at this point. Would it be ok with you if I investigated a patch? I may have some spare time mid next week, but no promises at all.

ItalyPaleAle avatar May 04 '14 22:05 ItalyPaleAle

Feel free to work on a patch. However, the current most important task is writing tests, it will help add new features and bug fixes without having to fear regression issues. I am a little occupied, so not able to do much.

On Mon, May 5, 2014 at 3:48 AM, Alessandro [email protected] wrote:

Now that Express 4 is out, I think you should consider that. Issue #17https://github.com/expressjs/multer/issues/17is one thing, but I would also add support for XML and JSON requests too, at this point. Would it be ok with you if I investigated a patch? I may have some spare time mid next week, but no promises at all.

— Reply to this email directly or view it on GitHubhttps://github.com/expressjs/multer/issues/9#issuecomment-42147430 .

hacksparrow avatar May 05 '14 03:05 hacksparrow

@EgoAleSum did you get a chance to work on it?

hacksparrow avatar May 29 '14 19:05 hacksparrow

Not yet, sorry

ItalyPaleAle avatar May 30 '14 21:05 ItalyPaleAle

No problem.

hacksparrow avatar May 31 '14 04:05 hacksparrow

It does now.

hacksparrow avatar Jul 19 '14 08:07 hacksparrow