Closed lyriccoder closed 5 years ago
I can't reproduce. Can you provide a sample project that shows the error?
Also, you want to wrap your whole routing handler in your middleware, rather than applying your middleware from scratch each request.
Let me create a sample project, I need to delete all unnecessary code. I will return later
When I am sending result with Python to clojure server, the clojure server doesn't have tempfile parameter and corrupted file is uploaded.
I use the following code:
I send a binary file using python:
When I receive the request, I get the following params: params {:to DATASETS/MULTI_PART/1.stl, :comment some comment, :user-name lyriccoder, :file from Cadent Ltd. h v???9?7??8??,...
So, I do not have tempfile parameter in the response, I have the content of the binary file. And when I try to save it (using input-stream/output-stream), the server saves a corrupted file.
I created a server with the following parameters: {:port 8080 :thread 42 :max-body 100388608} Could you please help me why it happens?