Jquery.Uploadify error -220 IO.Error #2038

轨迹行 2014-11-24 03:35:33
使用Uploadify做多文件上传,测试时当上传第四个或第五个时可能上传失败,无论大小,出现-220;Error:#2038;IO Error,刷新后重新上传又能上传成功。

...全文
1680 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
轨迹行 2014-12-05
  • 打赏
  • 举报
回复
问题已解决,经排查,是网络原因造成的
wyumening 2014-11-28
  • 打赏
  • 举报
回复
引用 12 楼 sz2677569466 的回复:
两个值得结果就是这个
在后台代码中用try catch 捕捉下,看能否捕捉到具体的错误信息
轨迹行 2014-11-27
  • 打赏
  • 举报
回复
两个值得结果就是这个
轨迹行 2014-11-27
  • 打赏
  • 举报
回复
Error #2038 IO Error
wyumening 2014-11-27
  • 打赏
  • 举报
回复
引用 9 楼 sz2677569466 的回复:
我就是用的这个弹出的提示啊 'onUploadError': function(file, errorCode, errorMsg, errorString) { alert(file.toString() + ";" + errorCode.toString() + ";" + errorMsg.toString() + ";" + errorString.toString()); }
断点监视下errorMsg和errorString的值是什么,如果查不到的,在后台代码中用try catch 捕捉下,看能否捕捉到具体的错误信息
wyumening 2014-11-26
  • 打赏
  • 举报
回复
引用 6 楼 sz2677569466 的回复:
[quote=引用 5 楼 wyumening 的回复:] [quote=引用 4 楼 sz2677569466 的回复:] [quote=引用 2 楼 u012175253 的回复:] multi : 设置为true时可以上传多个文件。 源码能截个图看下吗?
multi 设成true是批量上传多个文件吧,这个问题是多次上传 [/quote] -220是Uploadify3.0内置的一个errorCode。是属于Upload Error,可以在onUploadError事件中捕获到,在这个事件中应该能够捕获到详细的错误信息吧?看看这个错误信息是什么,再看看后台文件读写时用到了文件通道,通道关闭没?通道没关闭也有可能引发这个错误[/quote] onUploadError的详细信息就是这个图上显示的 文件通道指的是什么?[/quote] 你可以用这个代码把详细的错误信息显示出来
$(function() {
    $("#file_upload").uploadify({
        'swf'           : '/uploadify/uploadify.swf',
        'uploader'      : '/uploadify/uploadify-not-existing.php',
        'onUploadError' : function(file, errorCode, errorMsg, errorString) {
            alert('The file ' + file.name + ' could not be uploaded: ' + errorString);
        }
    });
});
轨迹行 2014-11-26
  • 打赏
  • 举报
回复
我就是用的这个弹出的提示啊 'onUploadError': function(file, errorCode, errorMsg, errorString) { alert(file.toString() + ";" + errorCode.toString() + ";" + errorMsg.toString() + ";" + errorString.toString()); }
wyumening 2014-11-25
  • 打赏
  • 举报
回复
引用 4 楼 sz2677569466 的回复:
[quote=引用 2 楼 u012175253 的回复:] multi : 设置为true时可以上传多个文件。 源码能截个图看下吗?
multi 设成true是批量上传多个文件吧,这个问题是多次上传 [/quote] -220是Uploadify3.0内置的一个errorCode。是属于Upload Error,可以在onUploadError事件中捕获到,在这个事件中应该能够捕获到详细的错误信息吧?看看这个错误信息是什么,再看看后台文件读写时用到了文件通道,通道关闭没?通道没关闭也有可能引发这个错误
轨迹行 2014-11-25
  • 打赏
  • 举报
回复
查到有一个出现相同问题的,他只说是文件通道没有关闭,不知道说的是什么?
轨迹行 2014-11-25
  • 打赏
  • 举报
回复
引用 5 楼 wyumening 的回复:
[quote=引用 4 楼 sz2677569466 的回复:] [quote=引用 2 楼 u012175253 的回复:] multi : 设置为true时可以上传多个文件。 源码能截个图看下吗?
multi 设成true是批量上传多个文件吧,这个问题是多次上传 [/quote] -220是Uploadify3.0内置的一个errorCode。是属于Upload Error,可以在onUploadError事件中捕获到,在这个事件中应该能够捕获到详细的错误信息吧?看看这个错误信息是什么,再看看后台文件读写时用到了文件通道,通道关闭没?通道没关闭也有可能引发这个错误[/quote] onUploadError的详细信息就是这个图上显示的 文件通道指的是什么?
轨迹行 2014-11-24
  • 打赏
  • 举报
回复
引用 2 楼 u012175253 的回复:
multi : 设置为true时可以上传多个文件。 源码能截个图看下吗?

multi 设成true是批量上传多个文件吧,这个问题是多次上传
轨迹行 2014-11-24
  • 打赏
  • 举报
回复
代码中引用using System.IO;命名空间了,不然也不会有能上传上去的情况
情若能自控Q 2014-11-24
  • 打赏
  • 举报
回复
multi : 设置为true时可以上传多个文件。 源码能截个图看下吗?
wyumening 2014-11-24
  • 打赏
  • 举报
回复
检查代码中有没有引用using System.IO;命名空间
charisma国外后台模版 # Charisma ### Free, premium quality, responsive, multiple skin admin template. ##[Live Demo](http://usman.it/themes/charisma/) ### [Download](https://github.com/usmanhalalit/charisma/archive/master.zip) ##Features - 9 different themes. - Fully responsive, optimized UI for tablets and mobile phones, [see how it looks on different devices](http://www.responsinator.com/?url=usman.it%2Fthemes%2Fcharisma). - Based on Bootstrap. - Works on IE9+ - Commented code. - Custom product tour, [see example](http://usman.it/themes/charisma/tour.html). - Grid system, [see example](http://usman.it/themes/charisma/grid.html). - Charts, including, pie, stack, flot, realtime etc. - Data tables - Widget boxes, collapsible, closable, [see example](http://usman.it/themes/charisma/grid.html). - Photo gallery [see example](http://usman.it/themes/charisma/gallery.html). - Ajaxified menus - Full calendar, monthly weekly, daily, with todo list. - Custom error page - Auto active link detection and much more. ## Credits Without these open osurce software Charisma woudn't have been possible: - [Twitter Bootstrap](http://getbootstrap.com/) - [jQuery](http://jquery.com) - [Bootswatch](http://bootswatch.com/) - [Chsoen](http://harvesthq.github.com/chosen/) - [Flot Charts](http://www.flotcharts.org/) - [Full Calendar](http://arshaw.com/fullcalendar/) - [Datatables](http://datatables.net/) - [Colorbox](http://www.jacklmoore.com/colorbox/) - [Noty](http://ned.im/noty/) - [Raty](http://wbotelhos.com/raty) - iPhone-style Checkboxes - [Autogrowing Textarea](http://onehackoranother.com/projects/jquery/jquery-grab-bag/autogrow-textarea.html) - [Animate.css](http://daneden.github.io/animate.css/) - [Uploadify](http://www.uploadify.com/) Please visit [http://usman.it/free-responsive-admin-template/](http://usman.it/free-responsive-admin-template/ "") for more information. ### [Donate Charisma](http://flattr.com/thing/1507720/usmanhalalitcharisma-on-GitHub) ___ © 2012 - 2014 [Muhammad Usman](http://usman.it/). Licensed under the Apache License, Version 2.0.

62,072

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧