Skip to content

Instantly share code, notes, and snippets.

@ceme
Created December 30, 2012 07:22
Show Gist options
  • Save ceme/4411409 to your computer and use it in GitHub Desktop.
Save ceme/4411409 to your computer and use it in GitHub Desktop.
PHP Tip: Uploading Multiple Files In HTML5
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<title>HTML5 Multiple File Upload</title>
<link rel="stylesheet" href="s.css" media="screen">
<style media="screen"></style>
</head>
<body>
<form action="processor.php" method="post" enctype="multipart/form-data">
<input type="file" value="" name="upload[]" multiple>
<button type="submit">Upload!</button>
</form>
<script></script>
</body>
</html>
<pre>
<?php
print_r( $_FILES );
?>
</pre>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment