From c9040054989f5930945b6f98f0c3ba8d579734ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=81=E5=AE=81?= Date: Tue, 18 Nov 2014 13:52:24 +0800 Subject: [PATCH] fix #341 --- admin/file-upload-js.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin/file-upload-js.php b/admin/file-upload-js.php index 133dde31..72b83113 100644 --- a/admin/file-upload-js.php +++ b/admin/file-upload-js.php @@ -94,6 +94,9 @@ $(document).ready(function() { li.effect('highlight', {color : '#FBC2C4'}, 2000, function () { $(this).remove(); }); + + // fix issue #341 + plupload.removeFile(file); } var completeFile = null; @@ -153,6 +156,7 @@ $(document).ready(function() { if (data) { fileUploadComplete(file.id, data[0], data[1]); + plupload.removeFile(file); return; } }