I'm putting it after the following "if" statement.

if (isset($_FILES['your_cv']) && !empty($_FILES['your_cv']['name'])) {

//save file to disk
$upload =...