Skip to content

Instantly share code, notes, and snippets.


divinity76/PHP upload file

Last active Aug 29, 2015
What would you like to do?
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Credentials: true");
echo '<pre>';
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">
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.