Skip to content

Commit

Permalink
Add missing upload helper file
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed Apr 18, 2013
1 parent 177a527 commit b4b2f03
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions XMLHttpRequest/resources/upload.php
@@ -0,0 +1,12 @@
<?php
ksort($_POST);
ksort($_FILES);
if (!empty($_POST))
foreach ($_POST as $k => $v)
echo "{$k}={$v},";
echo "\n";
if (!empty($_FILES))
foreach ($_FILES as $k => $v)
echo "{$k}={$v['name']}:{$v['type']}:{$v['size']},";

?>

0 comments on commit b4b2f03

Please sign in to comment.