"php - upload multiple images" Code Answer


You are basically asking of how to rebuild the $_FILES array to access subitems of them as one array.

$index = 0;
$field = 'fileImage';
$keys = array_keys($_FILES[$field]);
$file = array();
foreach($keys as $key)
    $file[$key] = $_FILES[$field][$key][$index];

change $index to the value you need to pick a specific file.

By mzubairkhalid8971-cc9fba06dc61 on December 19 2022

Answers related to “php - upload multiple images”

Only authorized users can answer the search term. Please sign in first, or register a free account.