Skip to content

Instantly share code, notes, and snippets.

@lyrixx
Created January 17, 2012 09:46
Show Gist options
  • Save lyrixx/1625927 to your computer and use it in GitHub Desktop.
Save lyrixx/1625927 to your computer and use it in GitHub Desktop.
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