Click or drag to resize
KaxAsyncUploadOnClientFileUploadFailed Property
Gets or sets the name of the client-side function which will be executed when a file upload ends unsuccessfully.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public string OnClientFileUploadFailed { get; set; }

Property Value

Type: String
The default value is string.Empty.
Remarks

If specified, the OnClientFileUploadFailed client-side event is called when a file fails to upload

  • sender, the async upload client object;
  • eventArgs with two properties:
    • get_fileName(), the name of the file that failed to upload.
    • get_fileInputField(), the file input field dom element.

This event cannot be cancelled.

Examples

<script type="text/javascript">
function onClientFileUploadFailed(sender, eventArgs)
{
var fileName = eventArgs.get_fileName();
var input = eventArgs.get_fileInputField();
}
</script>

<kettic:KaxAsyncUpload ID="KaxAsyncUpload1"
runat="server"
OnClientFileUploadFailed="onClientFileUploadFailed">
....
</kettic:KaxAsyncUpload>

See Also