Skip to content

Instantly share code, notes, and snippets.

@AitorAlejandro
Created April 16, 2015 21:32
Show Gist options
  • Save AitorAlejandro/7dbd4da229f1aa004507 to your computer and use it in GitHub Desktop.
Save AitorAlejandro/7dbd4da229f1aa004507 to your computer and use it in GitHub Desktop.
Multiple File Input
<form method="post" action="upload.php" enctype="multipart/form-data">
<input name='uploads[]' type="file" multiple>
<input type="submit" value="Send">
</form>
foreach ($_FILES['uploads']['name'] as $filename) {
echo '<li>' . $filename . '</li>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment