Re: Can't extract multipart-params from POST request in compojure

2016-07-06 Thread aaarturozhao
You are right! I didn't set the boundary in my client code. Thanks a lot! 在 2016年7月7日星期四 UTC+8下午12:46:04,James Reeves写道: > > By "application" I mean "Ring handler". > > Your request looks wrong. The boundary you set in your header > (--BoUnDaRyFF) doesn't match the boundary I see in the b

Re: Can't extract multipart-params from POST request in compojure

2016-07-06 Thread aaarturozhao
The request header: The request body:

Re: Can't extract multipart-params from POST request in compojure

2016-07-06 Thread aaarturozhao
This is the link to the question in stackoverflow: http://stackoverflow.com/questions/38226276/cant-extract-multipart-params-from-post-request-in-compojure 在 2016年7月7日星期四 UTC+8上午10:13:25,aaartu...@gmail.com写道: > > When I try to extract the multipart-params from a POST request like this: > > (defro

Can't extract multipart-params from POST request in compojure

2016-07-06 Thread aaarturozhao
When I try to extract the multipart-params from a POST request like this: (defroutes upload-routes (POST "/upload" {params :params} (println params)) I got {}. Then I tried like this: (defroutes upload-routes (POST "/upload" {multipart-params :multipart-params} (println multipart-params))