freesoftwarefactory / parse-multipart

A javascript/nodejs multipart/form-data parser which operates on raw data.
MIT License
48 stars 80 forks source link

empty array after parsing #20

Open tadiraman opened 5 years ago

tadiraman commented 5 years ago

hey,

I am having same issue as here https://github.com/freesoftwarefactory/parse-multipart/issues/15

var parts = multipart.Parse(body, boundary); parts is empty!?

s11shweta commented 5 years ago

hi,

i am facing same issue. the parts array is always empty... please advice

thanks

tadiraman commented 5 years ago

Hi,

This method didn't work as expected. So we created our own parser at buffer level. Let me post a gist of it soon.

cityofchandler commented 5 years ago

Same here.

tadiraman commented 5 years ago

@s11shweta and others: Apologies for delay. Here is the gist which handles buffer extraction which takes care of the Boundary. https://gist.github.com/tadiraman/6cb2a1770109206bb67a003e25a6de7e

damon-kreft commented 3 years ago

Yeah the example from the README doesn't even work. Presumably a dead broken library now

hanktrizz commented 3 years ago

Same here. Always getting an empty array.

downwater commented 1 year ago

Confirmed here. An SO answers shows a simple and useful way to parse multipart/byteranges response: https://stackoverflow.com/a/41351254