I really want to provide a real polyfill for ie9+ but I think it's gonna be hard :p.
Alex Indigo
@alexindigo
I'm still thinking on use case where globality would help it with isomorphism, in my view all isomorphic scripts being loaded/required via some kind load manager anyway, so all the dependencies get explicitly defined.
And nothing goes global.
Or did I miss something?
_
Dylan Piercey
@DylanPiercey
Well with browserify and webpack you can specify requires within the config as well, (usually a good spot for polyfills), which simply requires the file without having to do it explicitly in app code.
Since in the browser you are expecting form-data to be there it makes sense to make it global anyway since it would help people transitioning from dom code to isomorphic code.
Alex Indigo
@alexindigo
And Browserify would add it to the globsl space?
Dylan Piercey
@DylanPiercey
Yeah
Alex Indigo
@alexindigo
Didn't expect such behavior from Substack's creation :)
As for IE9 polyfill, find stream library that works there
Dylan Piercey
@DylanPiercey
:p it's not the most intuitive configuration but it works.
And the problem with IE9 is there is no fileapi / way to get file elements as blobs.
Which means I will likely have to use flash or something.
Alex Indigo
@alexindigo
Understood
Or just wait for IE10-11 :)
Dylan Piercey
@DylanPiercey
:p.
Alex Indigo
@alexindigo
And I have another idea to try
Dylan Piercey
@DylanPiercey
Whats that?
Alex Indigo
@alexindigo
Automate pushes to npm via codeship or something like that
Created tag on github it pushed to npm automatically
Dylan Piercey
@DylanPiercey
That'd be cool, never thought of using tags for that.
Alex Indigo
@alexindigo
it's how many enterprises do deployment
For audit purposes and whatnot
Dylan Piercey
@DylanPiercey
Ah cool.
Well I have to get to bed, so i'll chat with you later.
Alex Indigo
@alexindigo
yep, same here, have a good one
Brandon Blaylock
@baetheus
Heya Alex, I'm wondering if form-data can be used to pipe multipart\form-data to an http response stream. Would this just require generating and passing in custom headers in the options parameter or does form-data always expect to act as an http client?