ASP.Net MVC input file control event after file selection

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.
dodgerfanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Miguel OzSoftware EngineerCommented:
I do not think it is possible, because your are not suppose to alter files in an external PC. (otherwise imagine the number of files people could manipulate.
If more help neede please provide answers to:
Q1. What you could do though is in the controller action run whatever you need to run in the file before saving in into your system.
What exactly are you planning to do? if it is size validation that should be easy to implement in the controller action  and just return the view with a warning message.
Q2. What code have you got so far? Controller and View/Model
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.