Commit 6912cc3e authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX][API] route for upload.

parent 3ac42c25
......@@ -174,7 +174,7 @@ uploadFile session id fileType (UploadFileContents fileContents) =
where
q = FileUploadQuery { fileType: fileType }
--p = NodeAPI Corpus (Just id) $ "add/file/async/nobody" <> Q.print (toQuery q)
p = NodeAPI Corpus (Just id) $ "add/form/async/nobody" -- <> Q.print (toQuery q)
p = NodeAPI Corpus (Just id) $ "add/form/async" -- <> Q.print (toQuery q)
bodyParams = [
Tuple "_wf_data" (Just fileContents)
, Tuple "_wf_filetype" (Just $ show fileType)
......
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