I want to send a postman HTTP POST. In this request, for key 'fisier', I like to attach a csv file. How this can be done?
https://i.stack.imgur.com/Pnkii.png
Select your collection and drag it into the Run Order work area. Select your data file with the Select File button. After you select your data file, you can select Preview to inspect the data in the file before you start the run. Select Run using data files to begin the run with the values from the file.
On the File menu, click Import. In the Import dialog box, click the option for the type of file that you want to import, and then click Import. In the Choose a File dialog box, locate and click the CSV, HTML, or text file that you want to use as an external data range, and then click Get Data.
This can be done using
Select the POST
method and type the url
In the Body menu header, click on form-data
check-box
In the key-value form that comes,
3.1 add the key as fisier
3.2 Choose the type as File
from the dropdown near the key
3.3 A file chooser button opens, click it, borwse the file and upload it
3.4 Click on Send method to send the request
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With