Skip to content

Instantly share code, notes, and snippets.

@lyrixx
Created January 17, 2012 09:46
Embed
What would you like to do?
PHP Upload file - upload_max_filesize
<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