work around for dealing with a multipart/related multipart upload instead of a multipart/form-data