It looks like you're not validating anything with the code you have shown.
change the line as follows to reference the filename such as...
if(!$upload->isValid( $filenameToValidate ) {
... }
Also remember the filename is not a post but will be found in the $_FILES superglobal.