public function getUploadedData()
    {
        if (empty($this->move_uploaded_queue) || !is_array($this->move_uploaded_queue)) {
            return array();
        }

        $output = array();

        foreach ($this->move_uploaded_queue as $key => $queue_item) {
            if (
                is_array($queue_item) && 
                array_key_exists('name', $queue_item) &&
                array_key_exists('tmp_name', $queue_item) &&
                array_key_exists('new_name', $queue_item) &&
                array_key_exists('move_uploaded_to', $queue_item) &&
                array_key_exists('move_uploaded_status', $queue_item) && 
                $queue_item['move_uploaded_status'] === 'success'
            ) {
                // get file extension only
                $file_name_explode = explode('.', $queue_item['name']);
                $file_extension = (isset($file_name_explode[count($file_name_explode)-1]) ? $file_name_explode[count($file_name_explode)-1] : null);
                unset($file_name_explode);

                // get file info
                $Finfo = new \finfo();
                $mime = $Finfo->file($queue_item['move_uploaded_to'], FILEINFO_MIME_TYPE);
                unset($Finfo);

                $output[$key] = array();
                $output[$key]['name'] = $queue_item['name'];
                $output[$key]['extension'] = $file_extension;
                $output[$key]['size'] = (is_file($queue_item['move_uploaded_to']) ? filesize($queue_item['move_uploaded_to']) : 0);
                $output[$key]['new_name'] = $queue_item['new_name'];
                $output[$key]['full_path_new_name'] = $queue_item['move_uploaded_to'];
                $output[$key]['mime'] = $mime;
                $output[$key]['md5_file'] = (is_file($queue_item['move_uploaded_to']) ? md5_file($queue_item['move_uploaded_to']) : null);

                unset($file_extension, $mime);
            }
        }

        return $output;
    }
public function getUploadedData()
    {
        if (empty($this->move_uploaded_queue) || !is_array($this->move_uploaded_queue)) {
            return array();
        }

        $output = array();

        foreach ($this->move_uploaded_queue as $key => $queue_item) {
            if (
                is_array($queue_item) && 
                array_key_exists('name', $queue_item) &&
                array_key_exists('tmp_name', $queue_item) &&
                array_key_exists('new_name', $queue_item) &&
                array_key_exists('move_uploaded_to', $queue_item) &&
                array_key_exists('move_uploaded_status', $queue_item) && 
                $queue_item['move_uploaded_status'] === 'success'
            ) {
                // get file extension only
                $file_name_explode = explode('.', $queue_item['name']);
                $file_extension = (isset($file_name_explode[count($file_name_explode)-1]) ? $file_name_explode[count($file_name_explode)-1] : null);
                unset($file_name_explode);

                // get file info
                $Finfo = new \finfo();
                $mime = $Finfo->file($queue_item['move_uploaded_to'], FILEINFO_MIME_TYPE);
                unset($Finfo);

                $output[$key] = array();
                $output[$key]['name'] = $queue_item['name'];
                $output[$key]['extension'] = $file_extension;
                $output[$key]['size'] = (is_file($queue_item['move_uploaded_to']) ? filesize($queue_item['move_uploaded_to']) : 0);
                $output[$key]['new_name'] = $queue_item['new_name'];
                $output[$key]['full_path_new_name'] = $queue_item['move_uploaded_to'];
                $output[$key]['mime'] = $mime;
                $output[$key]['md5_file'] = (is_file($queue_item['move_uploaded_to']) ? md5_file($queue_item['move_uploaded_to']) : null);

                unset($file_extension, $mime);
            }
        }

        return $output;
    }
public function getUploadedData ( ) { if ( empty ( $ this -> move_uploaded_queue ) || ! is_array ( $ this -> move_uploaded_queue ) ) { return array ( ) ; } $ output = array ( ) ; foreach ( $ this -> move_uploaded_queue as $ key => $ queue_item ) { if ( is_array ( $ queue_item ) && array_key_exists ( 'name' , $ queue_item ) && array_key_exists ( 'tmp_name' , $ queue_item ) && array_key_exists ( 'new_name' , $ queue_item ) && array_key_exists ( 'move_uploaded_to' , $ queue_item ) && array_key_exists ( 'move_uploaded_status' , $ queue_item ) && $ queue_item [ 'move_uploaded_status' ] === 'success' ) { // get file extension only $ file_name_explode = explode ( '.' , $ queue_item [ 'name' ] ) ; $ file_extension = ( isset ( $ file_name_explode [ count ( $ file_name_explode ) - 1 ] ) ? $ file_name_explode [ count ( $ file_name_explode ) - 1 ] : null ) ; unset ( $ file_name_explode ) ; // get file info $ Finfo = new \ finfo ( ) ; $ mime = $ Finfo -> file ( $ queue_item [ 'move_uploaded_to' ] , FILEINFO_MIME_TYPE ) ; unset ( $ Finfo ) ; $ output [ $ key ] = array ( ) ; $ output [ $ key ] [ 'name' ] = $ queue_item [ 'name' ] ; $ output [ $ key ] [ 'extension' ] = $ file_extension ; $ output [ $ key ] [ 'size' ] = ( is_file ( $ queue_item [ 'move_uploaded_to' ] ) ? filesize ( $ queue_item [ 'move_uploaded_to' ] ) : 0 ) ; $ output [ $ key ] [ 'new_name' ] = $ queue_item [ 'new_name' ] ; $ output [ $ key ] [ 'full_path_new_name' ] = $ queue_item [ 'move_uploaded_to' ] ; $ output [ $ key ] [ 'mime' ] = $ mime ; $ output [ $ key ] [ 'md5_file' ] = ( is_file ( $ queue_item [ 'move_uploaded_to' ] ) ? md5_file ( $ queue_item [ 'move_uploaded_to' ] ) : null ) ; unset ( $ file_extension , $ mime ) ; } } return $ output ; }
Get the uploaded data.

@return array Return array set of successful uploaded files and its data.<br>
Example:
<pre>
$output = array(
'input_file_name_key' => array(
'name' => 'file_name_where_user_selected_in_the_upload_form.ext',
'extension' => 'ext',
'size' => 'file size in bytes.',
'new_name' => 'new_file_name_that_was_set_while_upload_process.ext',
'full_path_new_name' => '/full/move_uploaded_path/to/new_file_name_that_was_set_while_upload_process.ext',
'mime' => 'The real file mime type',
'md5_file' => 'The md5 file value.',
),
'other_input_file_name_key' => array(
'name' => '...',
'extension' => '...',
'size' => '...',
'new_name' => '...',
'full_path_new_name' => '...',
'mime' => '...',
'md5_file' => '...',
),
);
</pre>
If failed to upload, it will return empty array.
Get the uploaded data .