Search code examples
jmeterfiddler

Zip file not uploaded to server when post request in Jmeter


The same request works on Fiddler. so the web service is working ok.

When creating http request on Jmeter with same parameters as in fiddler, I get the correct response from server but the file does not appears in site. It's a simple http post request with zip file.

I have attached the file in "Files upload" in Jmeter with MIME type the same as in Fiddler (application/x-zip-compressed), etc... but the file get not uploaded while posting from Jmeter.

I dont know what other information you may need, just ask for it and I will try to find it.

this is how the request looks on Fiddler: this is how the request looks on Fiddler:

Request on view results tree

when recording with Jmeter the http request look like the picture: enter image description here


Solution

  • putting ${FILENAME} under file path in the "Files Upload" section (while leaving its paramter name empty and specifying an encoding) did the trick for me: enter image description here