Commit 40034e50 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] Async upload: OK 200

parent 3fcd3288
......@@ -173,8 +173,8 @@ uploadFile session id fileType (UploadFileContents 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/file/async/nobody" <> Q.print (toQuery q)
bodyParams = [
Tuple "_wf_data" (Just fileContents)
, Tuple "_wf_filetype" (Just $ show fileType)
Tuple "data" (Just fileContents)
, Tuple "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