Commit d89d4a64 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski Committed by Alexandre Delanoë

[Tree] new add/form/async endpoint for file upload

parent 9ea7a6c8
......@@ -169,8 +169,8 @@ instance fileUploadQueryToQuery :: ToQuery FileUploadQuery where
uploadFile :: Session -> ID -> FileType -> UploadFileContents -> Aff AsyncTask
uploadFile session id fileType (UploadFileContents fileContents) =
--postWwwUrlencoded session p fileContents
postMultipartFormData session p fileContents
postWwwUrlencoded session p fileContents
--postMultipartFormData session p fileContents
where
q = FileUploadQuery { fileType: fileType }
p = NodeAPI Corpus (Just id) $ "add/file/async" <> Q.print (toQuery q)
p = NodeAPI Corpus (Just id) $ "add/form/async" <> Q.print (toQuery q)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment