Adding support for Multipart form data

While trying to create an file upload API, this bundle started throwing exceptions. The below additions to the code fixed the issue. Please validate if this is the right place to fix.