Forum Discussion

merxyboy's avatar
merxyboy
New Contributor
7 years ago
Solved

Cannot upload an image using SoapUI - Petstore UploadImage API

Hi SmartBear community,   I have imported the sample petstore wadl from Swagger and am currently trying the UploadImage API. However, no matter what I do (searched all over the internet for answers...
  • HKosova's avatar
    7 years ago

    1) Change the petId parameter type to TEMPLATE.

    2) Change the file parameter value to file:hqdefault.jpg (not cid:...)

    3) Change Media Type to multipart-form/data.

    4) Select the Post QueryString check box.

     

    This should do the trick.