using a custom :store with wrap-multipart-params in ring middle ware

2014-04-01 Thread K Livingston
I'm having trouble using a custom :store with multipart-params. I thought I did exactly what the documentation indicates, but I'm getting the default behavior. http://ring-clojure.github.io/ring/ring.middleware.multipart-params.html :store- a function that stores a file upload. The functi

Re: using a custom :store with wrap-multipart-params in ring middle ware

2014-04-01 Thread K Livingston
Sorry, I just realized there's a ring-specific mailing list - apologies for the clutter. Moved: https://groups.google.com/d/topic/ring-clojure/O5HoT-UIWfk/discussion On Tuesday, April 1, 2014 12:02:26 PM UTC-6, K Livingston wrote: > > I'm having trouble using a custom :stor

Re: using a custom :store with wrap-multipart-params in ring middle ware

2014-04-01 Thread K Livingston
pojure.handler/site. If you remove that, or use > handler/api instead, or apply the parameter middleware yourself, your code > should work as expected. > > - James > > > On 1 April 2014 19:15, K Livingston > > wrote: > >> Sorry, I just realized there's a

using the same middleware (wrap-multipart-params) with different parameters in one app [ring] [compojure]

2014-04-03 Thread K Livingston
I'm trying to dynamically handle the InputStream in file uploads (ring/compojure app via servlet/jetty). I started with two different versions of the wrap-multipart-params, one is basically a NoOp that just returns the file name, and the other echoes the file back. They both work fine indepen