<input type="file" onchange="this.submit()" name="myfile" />