Fork me on GitHub
#ldnclj
<
2016-03-04
>
rickmoynihan10:03:27

@bahulneel: yeah that describes using the multi-part middleware - which is what we're using already... problem is I don't want to wrap the file in a form body - as its used by an API only... so I need another middleware to stream certain request bodies (depending on content type) into a temp file - and replace the body with the tempfile (like that middleware does).

rickmoynihan10:03:05

@bahulneel: yeah exactly - as you've demonstrated - it's easy enough to do - I was just wondering if there was an existing middleware for this...

rickmoynihan10:03:50

thanks though... I might take what you've done and deploy a middleware for this usecase if there isn't an existing one already.

rickmoynihan11:03:38

was thinking it might want to reuse bits from the multi-part middleware too though - e.g. the file store idea it has etc...

bahulneel11:03:11

@rickmoynihan: That would make sense

rickmoynihan11:03:13

also should probably take a set of content-types where it kicks in

rickmoynihan11:03:44

I might take a look at this next week sometime