开发者

Plupload in .NET - raising an error in the Plupload control

开发者 https://www.devze.com 2023-03-26 04:03 出处:网络
I have an event handler for when an error is raised in Plupload: Error: function(up, args) { // do something

I have an event handler for when an error is raised in Plupload:

Error: function(up, args) {
  // do something
}

How do I RAISE an error elsewhere in the code? I want to say up.RaiseError("somethi开发者_如何学Cng is wrong etc").


you can manually trigger the error event:

up.trigger('Error', args);

where args can basically be anything you want. For consistency, args should be an object with 2 required keys code and message, and 2 optional keys file and status.

0

精彩评论

暂无评论...
验证码 换一张
取 消