| @@ 619-621 (lines=3) @@ | ||
| 616 | ||
| 617 | // Extract posted feedback value |
|
| 618 | $tmpFile = array(); |
|
| 619 | foreach(array('name', 'type', 'tmp_name', 'error', 'size') as $field) { |
|
| 620 | $tmpFile[$field] = $postVars[$field]['Upload']; |
|
| 621 | } |
|
| 622 | return $tmpFile; |
|
| 623 | } |
|
| 624 | ||
| @@ 1114-1116 (lines=3) @@ | ||
| 1111 | // Skip if "empty" file |
|
| 1112 | if(empty($postVars['tmp_name']['Uploads'][$i])) continue; |
|
| 1113 | $tmpFile = array(); |
|
| 1114 | foreach(array('name', 'type', 'tmp_name', 'error', 'size') as $field) { |
|
| 1115 | $tmpFile[$field] = $postVars[$field]['Uploads'][$i]; |
|
| 1116 | } |
|
| 1117 | $tmpFiles[] = $tmpFile; |
|
| 1118 | } |
|
| 1119 | } elseif(!empty($postVars['tmp_name'])) { |
|