file is empty, not stored.

\n"; } else { rename($src, $dest); echo "

Moved: " . $src . " ====> " . $dest . "
"; echo "MD5 : " . md5_file($dest). "
"; echo "Size : " . filesize($dest). " bytes

\n"; } } function disaplyParsedFile($filekey) { echo "

File : " . $filekey . "
"; echo "Name : " . $_POST["{$filekey}_name"] . "
"; echo "Type : " . $_POST["{$filekey}_content-type"] . "
"; echo "Path : " . $_POST["{$filekey}_path"] . "
"; echo "MD5 : " . $_POST["{$filekey}_md5"] . "
"; echo "Size : " . $_POST["{$filekey}_size"] . " Bytes

\n"; } function displayNoParsedFile($filekey) { echo "

File : " . $filekey . "
"; echo "Name : " . $_FILES["{$filekey}"]['name'] . "
"; echo "Type : " . $_FILES["{$filekey}"]['type'] . "
"; echo "Path : " . $_FILES["{$filekey}"]['tmp_name'] . "
"; echo "Size : " . $_FILES["{$filekey}"]['size'] . "

\n"; } if(empty($_FILES["file1"])) { echo "

Request body updated by Parser

\n"; for ($i = 1; $i <= 2; $i++) { disaplyParsedFile("file{$i}"); $moved_to_path = '/tmp/uploadfile_' . $_POST["file{$i}_name"]; moveAndShow($_POST["file{$i}_path"], $moved_to_path); } } else { echo "

No Parser used

\n"; for ($i = 1; $i <= 2; $i++) { displayNoParsedFile("file{$i}"); $moved_to_path = '/tmp/uploadfile_' . $_FILES["file{$i}"]["name"]; moveAndShow($_FILES["file{$i}"]["tmp_name"], $moved_to_path); } } ?>