When using file: to bind an attachment to a QUERY parameter on a REST POST method, the attachment is sent twice: Once as the intended attachment type, and once as application/octet-stream. This only happens when the attachment is some sort of text data. If I specify a file that contains binary data, only 1 copy is sent.
I've duplicated the behavior in both SoapUI 4.6.4 and 5.0.0. [hr:172kwx79][/hr:172kwx79] Request Setup Method: POST Endpoint: http://localhost:8080 Resource: /api/image-converter/svg-to-png Media Type: multipart/form-data Post QueryString: true
Change the Content-Type in the attachments tab to image/svg+xml. For the type of file by default it is set to application/octect+stream. The request will still be sent in two parts but the first part will be text/plain for the Content-Type and second will be image/svg+xml with the contents of the file.