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.