Hi,
I've been experimenting with posting data to an Akka-http server but I cannot figure out how to parse multipart/form-data. Basically I've got an HttpRequest and I want to get the posted data out from it, preferably one part at a time as a stream. If I post using "application/x-www-form-urlencoded" I've been able to unmarshall it using:
CompletionStage<akka.http.scaladsl.model.FormData> data =
Unmarshaller.entityToUrlEncodedFormData().unmarshall(request.entity(), system.dispatcher(), mat);
However I haven't been able to figure out how to access the multipart unmarshaller and I have not been able to find any examples or any documentation about this for Java.
I guess I could just get the raw data stream and parse it with Apache commons FileUpload API or similar but since I'm pretty sure there is a multipart unmarshaller in there somewhere it would be nice if I could just use that.
I'm using Akka 2.4.7. Any pointers would be appreciated.
Thanks,
Magnus