views:

34

answers:

2

I'm creating a website using MVC2. Where do I save the image?

+2  A: 

Generally in an ASP.NET MVC project, you'd put images under the Content folder, which by default has an ignore route defined to allow them to be picked up directly from there. If you want to put them elsewhere, that's fine too - just make sure you put a route in so that the folder isn't interpreted as a controller.

David M
+1  A: 

Really, you can save them wherever you like. The "Content" folder is the default folder (included in the MVC template) that includes images. Then there is a separate folder for "Scripts".

However I actually run an Assets folder for everything.

wwwroot/
wwwroot/Assets/
wwwroot/Assets/Images
wwwroot/Assets/Scripts
wwwroot/Assets/Styles
wwwroot/Assets/Videos

Etc

rockinthesixstring