Telerik MVC 文件上传 - “OnError”即使响应状态设置为 401,也不会调用
我正在使用 Telerik MVC File Upload 将文件上传到服务器。我预计如果我返回 200 以外的响应状态代码,则会触发“OnError”JavaScript 处理程序。但是,当我将响应状态代码设置为 401 时,不会调用“OnError”回调。这是 Telerik MVC Upload 组件的默认行为还是我遗漏了什么?
I am using Telerik MVC File Upload to upload files on to server. I was expecting that if I return response status code other than 200, the "OnError" JavaScript handler would be triggered. However, the "OnError" callback is not getting invoked when I set the response status code to 401. Is this the default behaviour of the Telerik MVC Upload component or am I missing something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您使用的是哪个版本的 Telerik ASP.NET MVC 扩展?我相信这个问题(OnError 事件未触发)已在组件的 Q2 2011 SP1 (2011.2.914) 版本中得到解决,该版本甚至已发布给开源许可证持有者。您可以在此处下载该版本。请记住,2011 年第 3 季度的版本即将发布,目前正在推出公开测试版。有关测试版的更多信息,您可以访问 就在这里。
What version of the Telerik ASP.NET MVC Extensions are you using? I believe this (OnError event not firing) was resolved in the Q2 2011 SP1 (2011.2.914) release of the components, which was released even to the open source license holders. You can download that version here. Keep in mind that the Q3 2011 release is around the corner, with a public beta currently being out and about. For more information on the beta you can go right here.