[eluser]MadZad[/eluser]
Indeed, thanks xwero. I shall be utilizing that as well to improve what we've got.
Additionally, I tend to have paranoid code. In this case, I'm trying to validate file size while avoiding
"yo dummy, there's no array there" PHP errors:
Code:
if (! (isset($_FILES) and
array_key_exists('datafile', $_FILES) and
array_key_exists('size', $_FILES['datafile'])) ) {
$err_msg = "No data file specified";
}
else if ($_FILES['datafile']['size'] > $this->data['max_file_size']) {
$err_msg = "Specified file is too large";
}