File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ import qualified Data.ByteString.Lazy as LBS
107
107
-- instance FromMultipart Tmp User where
108
108
-- fromMultipart multipartData =
109
109
-- User \<$\> lookupInput "username" multipartData
110
- -- \<*\> fmap fileContent (lookupFile "pic" multipartData)
110
+ -- \<*\> fmap fdPayload (lookupFile "pic" multipartData)
111
111
--
112
112
-- type API = MultipartForm Tmp User :> Post '[PlainText] String
113
113
--
@@ -218,10 +218,10 @@ lookupInput iname = fmap iValue . find ((==iname) . iName) . inputs
218
218
-- @
219
219
-- data User = User { username :: Text, pic :: FilePath }
220
220
--
221
- -- instance FromMultipart User where
221
+ -- instance FromMultipart Tmp User where
222
222
-- fromMultipart form =
223
223
-- User \<$\> lookupInput "username" (inputs form)
224
- -- \<*\> fmap fdFilePath (lookupFile "pic" $ files form)
224
+ -- \<*\> fmap fdPayload (lookupFile "pic" $ files form)
225
225
-- @
226
226
class FromMultipart tag a where
227
227
-- | Given a value of type 'MultipartData', which consists
You can’t perform that action at this time.
0 commit comments