开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜