Remove unused variable $file

The script is using $upload variable right at the bottom line, $file is unused