Hey @alexindigo there is a couple of issues and PR I need from the package. I am more than happy to try to fix myself some of the issues but I need your support getting those PRs merge.
Thanks for your interest @yordis
Let’s see what you have in store :)
@alexindigo well, form-data/form-data#408 the only thing is missing is doing more complex stuff in the set since append does more than just updating a data structure
which I dont understand that much to be honest
would be helpful if we get this done
I see, yes append is so complex because it’s pretty much the only interface of the library.
And form-data was inspired by similar named browser API, but it’s goal was to allow node apps to upload things to other websites, means it had to handle all kinds of data types that node developers would throw at it.
And node is more fruitful in that area, since it doesn’t have artificial limitations as browsers do.
Any specific area of the append I can explain in greater detail?
can i ask abt multipart and blobs here?
@alexindigo well I will need your help understanding the complexity. Could you do some Code Review and comment what I am misisng and give me some directions about it please
hey @yordis I'm sporadically available, is it 408 you're talking about?
@jedwantstocode just ask and one of us will answer
Is this known issue with ReadStream and filepath option?
Sorry, my bad. Problem was in old cached version of form-data.
Hey, I opened #426 but perhaps here is the better place for this
I will check it out when I get home, if you don’t hear from me in 24h please ping me one more time.
cheers, think i'll just have to use the request module for now though
Hey, I opened #436. Just posting here in case this chat is busier than the Github page.
Hey guys, i want to upload multipart data, but i only want to accept some formats. The question is how can i extract the format from a multipart request, is something with mime type, or just headers ?
Multipart has part specific headers types, with each part headers, that part of the http body. So you’d need to do some streaming parsing. Look into Formidable is it can do it, and ask their community, they’ll be more familiar with the matter of parsing multipart :smile: Here we’re just building the payload. :smile:
Anyone have any luck streaming a AWS S3.getObject().createReadStream() into a form-data value? e.g. formData.append('file', s3FileStream);