How do I echo the file location in the browse field if errors are set?

Here is what I have:

Code:
<input type="file" name="upload" id="upload" size="48" value="<?php if($flag) { echo $_FILES['file']['name']; } ?>" />