I am trying to upload file and storing into the database.
Here is my model class:
public string screen_print_one { get; set; }
This is my view markup:
<div class="form-group">
<label asp-for="screen_print_one" class="control-label"></label>
<input type="file" asp-for="screen_print_one" class="control-label" name="file" id="file" />
</div>
I am not able to see value (or path) in my controller for the screen_print_one.
Please help me with the controller code that how I can upload file on server and store path inside the database.
FileUploadclass. If you Google 'ASP FileUpload MVC' you'll get some good starting guides. Once you start coding yourself and have any further issues, I'd then post whatever code you have, along with any error messages, and then we can help further.