Reputation: 73
I am having some issue in file uploading with jmeter
I hav added the parameter in http header manager and uploaded .txt file and I am hitting a http request.
Sampler Request giving request code 200
Response data is shown below:
Could not parse multipart servlet request; nested exception is org.apache.commons.fileupload.FileUploadException: the request was rejected because no multipart boundary was founderror
Upvotes: 0
Views: 1007
Reputation: 73
It was resolved.
Thanks everyone for your support.
Upvotes: 0
Reputation: 168072
Use multipart/form-data for POST
boxMake sure "Parameter Name" matches the "name" attribute of the relevant File HTML Input field.
In the absolute majority of cases it is much easier to just record your file upload event using JMeter's HTTP(S) Test Script Recorder, just make sure you copy your file(s) to JMeter's "bin" folder prior to recording the request itself, see Recording File Uploads with JMeter article for more details.
Upvotes: 1