Jmeter v.5.1.1 r1855137
I'm trying to upload .xlsx file using multipart/form-data request type, however, I'm getting different errors such as:
- multipart body length limit 16384 exceeded;
- unexpected end of stream, the content may have already been read by another component;
These are parameters for POST request that should upload our .xlsx file: screenshot_1
Method: POST;
Use multipart/form-data checkbox: unchecked;
File Path: C:\temp\5000Lanes.xlsx;
Parameter Name: file;
MIME Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
- MIME type value is specified for .xlsx file types - https://www.freeformatter.com/mime-types-list.html;
These are Header Manager parameters screenshot_2
Content-Type: multipart/form-data; boundary=--AaB03x
Note that Body Data and Parameters left empty screenshot_3
So, please help me to figure out what is wrong in configuration to make upload successful ?
After 1 day of struggle I've found the solution and now the upload is successful.
So, using the same configs that were specified in my question the only thing you need to add is to proceed to 'Advanced' tab of your HTTP Request and set 'Implementation' parameter to Java https://i.stack.imgur.com/GtEDz.png