Search code examples
file-uploadjmeterzipmime-typesblazemeter

ZIP and CSV file upload issue in Jmeter script which is recorded using Blazemeter


I have recorded a transaction using Blazemeter and trying to validate the same .jmx file in Jmeter 4.0. I have given the correct File path(jmeter/bin folder path) in Files Upload tab and below MIME Types but I am getting below error.

Please suggest. enter image description here


Solution

  • In the majority of cases you need to tick Use multipart/form-data for POST box in order to be able to upload the files using JMeter:

    enter image description here

    See RFC 2388 for more details. If you tick this box you need to remove Content-Type header declaration from the HTTP Header Manager

    Also be aware that according to JMeter Best Practices you should be always using the latest version of JMeter so consider upgrading to JMeter 5.3 (or whatever is the latest JMeter stable version)

    And last but not the least, you should be able to normally record file upload requests using JMeter's HTTP(S) Test Script Recorder, just make sure to copy the file(s) you will be uploading to JMeter's "bin" folder