I have an ASP.Net MVC application. One of my views has a input file control that users use to select a file to upload to a database. After the user selects a file but BEFORE they click the upload button, I'd like to run some code from the controller on the file. Is there a way to do this? It's a simple input control: <input type="file" name="postedfile" /> Any help is appreciated.