You can't. An <input type="file" />
is not made for editing files, just for uploading them.
If you just want to be able to delete the file in the edit view try this (just an example):
- Add a bool property
DeleteFile
to the edit view model - Add that property as a checkbox in the edit view
- In your edit method check if
DeleteFile
is set to true and if so, find and delete the file attached to that record you are editing
And you could rename File
to UploadedFile
(so its a bit clearer). But thats up to you of course.