![image](https://jigneshparmar.com/blog-image/3/Dist66QbOEP8USC7f8MLE4fuFccoVVbc.jpg)
Step 1: Configure JMeter for CSV file image upload.
- Launch Jmeter
![](/blog-image/2/A7scCplVCj1YeSMbiyxdlvqCIq8s2Zyo.png)
- Right Click on Test Plan --> Add--> Threads (Users) --> Thread Group
![](/blog-image/3/1ujejKHWkew4WMo24cXSZhnkuhZT0rre.png)
- Right Click on Thread Group --> Add --> Sampler --> HTTP Request
![](/blog-image/2/hpu0fRXVvgQz6XXZUVvI2KikG4tAevoV.png)
- Now, fill the value in the appropriate fields.
- Method = "POST"
- Make sure "Use multipart / form-data" checkbox is checked.
![](/blog-image/2/5U8S6YcyfTfkVFUYYqvRitxhgAt6CGCC.png)
- Click on the Files Upload tab and fill in the details as described below.
- File Path: Here, enter parameter name between the dollar and curly brackets. Like: ${image}
- Parameter Name: Give the appropriate name of the image parameter.
- MIME Type: Enter the MIME type as per the selected images for upload.
- image/png
- image/jpeg
- image/jpg
- image/bmp
- image/webp
- image/gif
![](/blog-image/3/x3Dmxs8Rtfc2o0g80zKmPJwiKpvGwjec.png)
Step 2: Create CSV file for image path
- Press the window button of the computer and enter excel and open the excel file.
- Now enter the full path of the images with the image name and extensions in a single column.
- Then save this file as a CSV file(Comma-Delimited).
![](/blog-image/3/swJIZVIboy79C9rDCI5hfAbDpQ8vZa3r.png)
Step 3: Create CSV Data set config in Jmeter
- Right Click on Thread Group --> Add --> Config Element --> CSV Data Set Config
- Fill appropriate details in the config file as below steps.
- Filename: By browse option select CSV file.
- Variable Name(comma-delimited): Enter the parameter name of the image file for Web Services/API.
- Select other options as below image.
![](/blog-image/3/qacGmN2ajOlHi13zx9UEsTWHYKPpeteZ.png)