Hi how do I get multipart form data
in case of Java Azure Function Apps
?
I have looked at the this but there is no mention of multipart form data
public HttpResponseMessage run(
@HttpTrigger(
name = "req",
methods = {HttpMethod.POST},
authLevel = AuthorizationLevel.ANONYMOUS)
HttpRequestMessage<Optional<String>> request,
final ExecutionContext context) {
context.getLogger().info("Java HTTP trigger processed a request.");
// This gives me the whole body
final String file = request.getBody().get();
System.out.println(file);
}
How can I filter out just my upload ?
I seem to be having no API for this. I can access the whole body and that's it.
How do I do this in Java ?