title: Multiple file upload in PHP, getting index of file
body: <p>I have a form to upload multiple files, my input already has the name files[], the issue is that i set the index for each input as I need it to identify the file they're uploading.</p>
  
  <p>Is there a way to get that index sent while processing the upload in PHP.</p>
  
  <p>I already have the form created with the specific id needed, I can upload the file, I have no problem uploading it, I want the index of the name in the HTML form to identify it.</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;input type="file" name="expediente[1]" class="custom-file-input form-control" multiple="false" id="exp1"&gt;
  &lt;label class="custom-file-label" for="exp1"&gt;ID&lt;/label&gt;
  
  &lt;input type="file" name="expediente[2]" class="custom-file-input form-control" multiple="false" id="exp2"&gt;
  &lt;label class="custom-file-label" for="exp2"&gt;PHOTO&lt;/label&gt;
  
  &lt;input type="file" name="expediente[4]" class="custom-file-input form-control" multiple="false" id="exp4"&gt;
  &lt;label class="custom-file-label" for="exp2"&gt;PROFILE&lt;/label&gt;
  </code></pre>
  
  <p>I want to get the index of the array expediente[<b>this index right here</b>], to insert it later as an identifier in the database, is there a way to get it. <br />
  The form is dynamically generated depending on user information, so the indexes aren't consecutive.
  I have a workaround sending a hidden input with the id, but it involves disabling the hidden inputs, and it sometimes fails.</p>
  
  <p>I'm using ajaxForm to send the parameters to the php processing script.</p>