Upload multiple images from a folder

Viewed 22

Problem statement: Trying to upload all the images from a folder to my post request

Error statement: Getting access denied error

Header Manager Configuration:

enter image description here

Http Request Configuration:

enter image description here

enter image description here

Folder Content

enter image description here

How to upload all the images and if there are multiple images how the header manage X-File-Name can be updated?

1 Answers

You can consider using Directory Listing Config plugin, it acts pretty much like CSV Data Set Config but for folders instead of CSV files.

It will read the filename (or full path) to the file for each user for each iteration so next time the HTTP Request sampler will be executed it will upload a new file given you use the appropriate JMeter Variable in the "Files Upload" tab of the HTTP Request sampler and in the HTTP Header Manager

enter image description here

enter image description here

enter image description here

You can install Directory Listing Config plugin using JMeter Plugins Manager

Related