This is a migrated thread and some comments may be shown as answers.

Kendo upload not working correctly.

3 Answers 423 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Shahul
Top achievements
Rank 1
Shahul asked on 03 Dec 2012, 01:21 PM
HI ,

  I am using kendoUpload() in menual upload method, not auto upload. 1st i select file, it is correctly added after am upload another file, i select only one file but show one file more time in file selection.( i attached copy of this.)

use,   autoupload: false,

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 05 Dec 2012, 09:04 AM
Hi Shahul,

If I understand you correctly, you want to remove the successfully uploaded files from the list, so that the user only sees the non-uploaded files. This can be done with the following script:

function deleteOldFiles(e) {
    this.wrapper.find(".k-success").each(function(){
        $(this).parent().remove();
    });
}
 
$(document).ready(function() {
    $("#files").kendoUpload({
        async: {
            autoUpload: false
        },
        select: deleteOldFiles
    });
});


Greetings,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
JoJo
Top achievements
Rank 1
answered on 02 Jan 2013, 08:36 AM
Hi, 

where does the object "wrapper" defined ? I am getting an error on executing the code that "Wrapper" is unknown identifier.
0
Dimo
Telerik team
answered on 02 Jan 2013, 11:55 AM
Hi Suresh,

Please mind the letter casing - wrapper should be written with small letters.

If the problem seems different, please show me your implementation.

Greetings,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Upload
Asked by
Shahul
Top achievements
Rank 1
Answers by
Dimo
Telerik team
JoJo
Top achievements
Rank 1
Share this question
or