Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

File upload #8

Open
dbushenko opened this issue May 12, 2016 · 1 comment
Open

File upload #8

dbushenko opened this issue May 12, 2016 · 1 comment

Comments

@dbushenko
Copy link

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
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants