codice:
<form action="upload.ext" method="post">
      <input type="file" onchange="this.form.submit()" name="nome"/>
</form>