Added support for multipart/form-data upload.