The file upload element fires an onchange event when its contents have changed. Here is a very brief example:
<input type="file" name="whatever" onchange="alert('Changed!');" />
EDIT: Oh, and if you want to submit the form when they select something (although this will probably confuse your users a bit):
<input type="file" name="whatever" onchange="this.form.submit();" />
source share