title: How to send multiple files under the same name using CURL in php7+
body: <p>Hi am trying to send multiple files in a php Curl operation. I am using PHP7.2 and trying to send 15 images under the same key.
  If I am trying to send just 1 file its working just fine.</p>
  
  <p>$post["image"] = new \CurlFile('image_full_path.png', 'image/png', 'file.png');</p>
  
  <p>But when I am trying to put multiple files its not working anymore.</p>
  
  <p>Already tried 
  $post["image[0]"] = new \CurlFile('image_full_path.png', 'image/png', 'file.png');</p>
  
  <p>And </p>
  
  <p>$post["image_0"] = new \CurlFile('image_full_path.png', 'image/png', 'file.png');</p>
  
  <p>Does not work</p>
  
  <pre><code>    $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL,"url");
      curl_setopt($ch, CURLOPT_POST, 1);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
      curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-type: multipart/form-data"));
      curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
      $response = curl_exec($ch);
      $path = '/var/www/download/download.pdf';
      file_put_contents($path, $response);
      echo $response;
  </code></pre>