title: Re-POST $_FILES to REST Slim Framework
body: <p>My form will post all form data to a file called upload.php. </p>
  
  <p><strong>Question is:</strong> Is it possible to re-POST multipart/form-data, including $_FILES to my REST SLIM framework like this:</p>
  
  <pre class="lang-php prettyprint-override"><code>$headers = array('Content-type: multipart/form-data','Authorization: '.$api_key,);
  
  $curl_post_data = array('employee_id' =&gt; $employee_id,'files' =&gt; $_FILES);
  $curl = curl_init('http://[...mydomain...]/v1/uploadEquipmentDocument');
  
  curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($curl, CURLOPT_POST, true);
  curl_setopt($curl, CURLOPT_POSTFIELDS, $curl_post_data);
  curl_setopt($curl, CURLOPT_USERPWD, $api_key);
  
  $curl_response = curl_exec($curl);
  </code></pre>
  
  <p>Thanks..</p>