I have in my view "Upload" the following code:
<form action="" method="post" enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file" />
<input type="submit" />
</form>
And in my controller "SubidaController" the following
public ActionResult Subida()
{
return View();
}
I need that from the form of my view I can upload an image to then go to the index and see it there. That is to say that when uploading an image it must be saved inside a physical directory of my project so when restarting or reloading the page the images are not lost. I've searched I've tried methods that use sites like this link but I have not achieved what I need.
Edited
Here I found the way to do it, the only problem I have is that they are not shown on my homepage, they are only saved in the "images" folder of my project link