I have an MVC app with a page that allows a user to upload an image. I just use standard HTML to allow the user to upload the image:

<input type="file" name="image" class="upload-image"/>

When the user reloads this page, I want to display the image they may have already uploaded and also give the user the chance to upload a new image to replace it. I'm not sure the best way to do this. I'm guessing I need an <img> tag somewhere to display the current image while allowing the user to upload a replacement if desired. Is this the best way to accomplish this, or is there a better way?

Related posts

Recent Viewed