Forum Discussion

oren_shoham's avatar
oren_shoham
New Contributor
15 years ago

How do I simulate file upload from an HTML form?

Hi,

I'm using soapUI 3.6 beta 1, and I'm trying to use the soapUI attachment functionality in an HTTP Test request, in order to simulate the uploading of a file via an html form. I'm unable to get this to work at all, as it seems like the attachment never reaches the server.
Is there any documentation for this at all? I defined the media type as multipart/form-data, and my attachment is a small xml file. A screenshot of the request is attached.

Any hints are most welcome.

Thanks,

Oren

1 Reply

  • I also tried this without the attachment and only the parameter. I noticed that when there's only one parameter the XML file is embedded within the request (but this is still unreadable by my Tomcat Server, which uses Struts MVC). When there's more than one parameter (like in my screenshot) none of the parameters gets transferred in the request (I can see this by viewing the "raw" request).

    Has anyone ever got this to work?

    Thanks,

    Oren