ASP.Net MVC 5 image upload to folder

前端 未结 2 476
無奈伤痛
無奈伤痛 2020-12-14 04:48

I have a very simple MVC5 application that has a product page for the client that I also am utilizing the basic CRUD operations that have been scaffolded out in MVC 5.

2条回答
  •  渐次进展
    2020-12-14 05:09

    The code that was supplied here eventually went into building this small demo that allows you to upload images to the file system and use them dynamically without storing any values to the database; however you will have the string to the images file location as part of your Model class which uses a convention and naming of the uploaded file to display.

    I would like to upload this to github and see if I can't get some others to help me work out a better solution that uses this idea. Thinking of making it work with MongoDB too.

    ASP.NET MVC 5 Image Upload & Delete w/ Calculated Property

提交回复
热议问题