Check out example codes for "multipart form". It will help you in understanding the concepts better.

Code Example 1

<form action="upload.php" method="post" enctype="multipart/form-data">
  Select image to upload:
  <input type="file" name="fileToUpload" id="fileToUpload">
  <input type="submit" value="Upload Image" name="submit">

Code Example 2

<form action="/action_page_binary.asp"
 method="post" enctype="multipart/form-data">

  <label for="fname">First name:</label>
  <input type="text" id="fname" 
  <label for="lname">Last name:</label>
    <input type="text" id="lname" name="lname"><br><br>
    type="submit" value="Submit">


Learn ReactJs, React Native from