make sure the uploaded file exists