There is problem with your MVC Upload(MVC Kendo Upload too). If you add file name with symbol Jon's.txt to Upload control the Upload file list will look like
<span class="t-filename" title="Jon" s.txt'="">Jon's.txt</span>
As you see the html is parsed incorrectly. Also we keep Upload file list hidden by default and manage our own file list. We use JS code below to delete file from Upload file list.
function RemoveFile(fileName) {
$('.t-filename[title="' + fileName + '"]').last().parent().remove();
}
And this code do not work on such file. Do you have any solution?
BTW it is not very smart to use file name as ID, why not to use GUID ID for files?
<span class="t-filename" title="Jon" s.txt'="">Jon's.txt</span>
As you see the html is parsed incorrectly. Also we keep Upload file list hidden by default and manage our own file list. We use JS code below to delete file from Upload file list.
function RemoveFile(fileName) {
$('.t-filename[title="' + fileName + '"]').last().parent().remove();
}
And this code do not work on such file. Do you have any solution?
BTW it is not very smart to use file name as ID, why not to use GUID ID for files?