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

[Solved] Upload Control Exceptions

1 Answer 12 Views
Upload
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 27 Mar 2013, 05:40 PM
I am a little new to Telerik Controls and what I would like to do is change the message in the alert box to a custom message. How would I go about this?

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 28 Mar 2013, 02:30 PM
Hello,

You can display a custom error message in the error event handler.

function onError(e) {
    // Array with information about the uploaded files
    var files = e.files;

    if (e.operation == "upload") {
        alert("Failed to uploaded " + files.length + " files");
    }

    e.preventDefault();
}

The latest version of the Upload does not display an alert box. As a result you don't need to call e.preventDefault().

Regards,
Tsvetomir Tsonev
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
Tags
Upload
Asked by
Michael
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or