Upload Component - Check if selected File != null

Hi everybody,

in my application i´m using an immediate upload component in a subwindow dialog.
is there a way to check if the user has already selected a file before i call submitUpload()???

thank you for your help