Forum Discussion

esinghvi's avatar
esinghvi
New Contributor
15 years ago

How to send image file attachments in Rest using SoapUI

I am using SoapUI for Rest testing. I want to upload or attach an image file to the request. I have made a HTTP post request and added an attachment. But is there any other things to be configured or parameters to be changed so that the attached file is been sent successfully to the app server.

Please help, i have started using Rest recently.

Thanks,
ES

1 Reply

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hello,

    Set the attachment and make sure that your Media Type is set to multipart/form-data (I'm assuming you wish to simulate a HTTP form). You also need to change the attachments name to match what the server is expecting it to be. If you have other parameters to send along with the request, you need to check the "Post QueryString" checkbox to send the parameters in the POST body.

    Regards,
    Dain
    eviware.com