Skip to content

Instantly share code, notes, and snippets.

@divinity76 divinity76/PHP upload file
Last active Aug 29, 2015

Embed
What would you like to do?
<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Credentials: true");
echo '<pre>';
ob_start();
var_dump('$_GET',$_GET,'$_POST',$_POST,'$_COOKIE',$_COOKIE,'$_FILES',$_FILES);
echo htmlentities(ob_get_clean(),ENT_SUBSTITUTE).'</pre>';
?>
<form action="?">
<input type="file" name="files[]" >
<input type="file" multiple name="files[]" >
<input type="submit" value="Submit">
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.