title: Access file upload array in blueimp's jquery file uploader
body: <p>This one's been bugging me for ages. I'm using blueimp's upload system which is working really well. Below i will post the code i believe to be relevant to my issue:</p>
  
  <p>When i <code>print_r($files)</code> this is what i get back:</p>
  
  <pre><code>Array
  (
      [0] =&gt; stdClass Object
          (
              [name] =&gt; 16-01-14_QE5YHS.jpg
              [size] =&gt; 984576
              [type] =&gt; image/jpeg
              [url] =&gt; http://www.summersproperty.com/dashboard/uploads/HNI3Q3/16-01-14_QE5YHS.jpg
              [thumbnailUrl] =&gt; http://www.summersproperty.com/dashboard/uploads/HNI3Q3/thumbnail/16-01-14_QE5YHS.jpg
              [deleteUrl] =&gt; http://www.summersproperty.com/dashboard/uploads/?file=16-01-14_QE5YHS.jpg
              [deleteType] =&gt; DELETE
          )
  
  )
  </code></pre>
  
  <p>The $files array is set up here i believe:</p>
  
  <pre><code>$files = array();
          if ($upload &amp;&amp; is_array($upload['tmp_name'])) {
              // param_name is an array identifier like "files[]",
              // $_FILES is a multi-dimensional array:
              foreach ($upload['tmp_name'] as $index =&gt; $value) {
                  $files[] = $this-&gt;handle_file_upload(
                      $upload['tmp_name'][$index],
                      $file_name ? $file_name : $upload['name'][$index],
                      $size ? $size : $upload['size'][$index],
                      $upload['type'][$index],
                      $upload['error'][$index],
                      $index,
                      $content_range
                  );
              }
          }
  </code></pre>
  
  <p>It also returns a JSON response which is:</p>
  
  <pre><code>{"files":[{"name":"16-01-14_QE5YHS.jpg","size":984576,"type":"image\/jpeg","url":"http:\/\/www.summersproperty.com\/dashboard\/uploads\/HNI3Q3\/16-01-14_QE5YHS.jpg","thumbnailUrl":"http:\/\/www.summersproperty.com\/dashboard\/uploads\/HNI3Q3\/thumbnail\/16-01-14_QE5YHS.jpg","deleteUrl":"http:\/\/www.summersproperty.com\/dashboard\/uploads\/?file=16-01-14_QE5YHS.jpg","deleteType":"DELETE"}]}
  </code></pre>
  
  <p>I need to extract <code>16-01-14_QE5YHS.jpg</code> from the array to use in a script im writing with GD. I have tried <code>echo $files[0]['name'];</code>. I'm sure it's something simple but i'm so confused</p>