Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add csv file to HTTP POST

Tags:

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

like image 729
Andrei Avatar asked Apr 04 '17 06:04

Andrei


People also ask

How do I add a csv file to a postman request?

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.

HOW include csv file in HTML?

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.


1 Answers

This can be done using

  1. Select the POST method and type the url

  2. In the Body menu header, click on form-data check-box

  3. 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

Illustration for the steps

like image 141
Harshit Garg Avatar answered Oct 06 '22 03:10

Harshit Garg