fregelab / chinook

Tiny Frege web framework developed on top of sparkjava.com
http://fregelab.github.io/chinook/
Apache License 2.0
28 stars 4 forks source link

File upload #8

Open dbushenko opened 8 years ago

dbushenko commented 8 years ago

Is it possible to upload files with chinook? If we look at the Request type

data Request = Request { headers :: [(String, Maybe String)], queryParams :: [(String, [String])], pathParams :: [(String, String)], body :: Maybe String }

it is not clear where to get the binary input stream...

mariogarcia commented 8 years ago

Not at the moment. Checking at sparkjava.com the way to go would be exposing the raw() method and accessing an input stream from it http://sparkjava.com/documentation.html#examples