PHP Upload file - upload_max_filesize
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<?php | |
var_dump($_FILES); | |
if (isset($_FILES['test'])) { | |
$filetemp = $_FILES['test']['tmp_name']['file01']; | |
echo 'file tmp location : '.$filetemp.'<br />'; | |
echo 'is file on disk ? : '.file_exists($filetemp).'<br />'; | |
} | |
?> | |
<hr/> | |
<form action="" method="post" enctype="multipart/form-data"> | |
<input type="file" name="test[file01]"> | |
<input type="submit"> | |
</form> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment