<input onchange="document.getElementById('send').submit()" type="file" /> <input id="send" type="submit" value="Send" />