views:

43

answers:

1

Hi guys,

I was looking to upload an image (jpg) to a SQL Server database using MVC.

Basically - my user would be able to navigate to a page, Browse their computer using a file upload textbox/browse button, and click submit to have the file uploaded to the database.

Fairly new to MVC and not quite sure how to go about this.

There's lots of tutorials on the web however many of them with negative comments.

Does anyone know of any tried and tested tutorials that I could try?

Thanks.

+1  A: 

I usually handle uploads with a model binder. I have a blog post here where I describe how I do it.

Mattias Jakobsson