上传程序正常工作,但是当我尝试“删除”任何上传的文件时,文件将被正确删除,但 html 页面中的行仍然像点击之前一样!单击“删除”按钮后如何删除行?
这是这里的代码:
<script>
$(function() {
$("#upload").kendoUpload({
async: {
saveUrl: "modules/save.php",
removeUrl: "modules/remove.php",
autoUpload: true,
multiple: true
}
});
});
</script>
这是remove.php:
<?php
$targetdir = "../files/";
$targetPath = $targetdir.$_POST["fileNames"];
unlink($targetPath);
echo "";
?>