Error uploading the file

That thread suggests this code pattern:

The question becomes: What needs to happen for HasValue to be true so that I can upload the file?
Like I said, even after I drag a file on the control and the OnChange event handler shows that a file has been added, HasValue continues to be false for me.

EDIT: HasValue shows as true inside the Change event handler, but is false at the beginning of the submit handler

EDIT: If I change the control to Auto, it uploads as expected immediatley after the drop. However, we have to let the user modify the filename before it is uploaded, so we want to upload it after the user hits the "Upload" button, hence I made that button ButtonType.Submit and am using the submit event handler to do the upload.