Why PHP can't see an uploaded file?
I have an index.php and upload.php. In index.php is a form action="upload.php" with input type="file" id="file" name="file" tag in it. PHP code is: <?php $file = $_FILES['file']; print_r($file); echo "test"; ?> For some reason it shows echo but print_r() doesn't…