我正在使用plupload (v1.4.3.2),并在几周前对其进行了设置,一切正常。从那以后我再也没碰过它。
现在它不起作用了。当文件达到100%时,我会得到一个很大的描述性错误
IO错误。错误#2038
var renderImportForm = $(selectors.uploader).livequery(function ()
{
var uploader = $(this).plupload({
// General settings
runtimes: 'html5,silverlight,flash',
url: urls.importCalendarsURL,
max_file_size: '5mb',
max_file_count: 10, // user can add no more then 10 files at a time
unique_names: true,
multiple_queues: true,
// Resize images on clientside if we can
resize: { width: 320, height: 240, quality: 90 },
// Rename files by clicking on their titles
rename: true,
// Sort files
sortable: true,
// Specify what files to browse for
filters: [
{ title: "iCalendar", extensions: "ics" }
],
// Flash settings
flash_swf_url: my.uploaderSettings.flash,
// Silverlight settings
silverlight_xap_url: my.uploaderSettings.silverLight,
init:
{
UploadComplete: function (up, file, info)
{
alert('hi');
}
}
});上面的代码可以工作。
如果我把它翻转到原来的样子(几周前设置的)
runtimes: 'flash,html5,silverlight,'它不起作用。因此,这让我相信这是一个问题,与flash的html5工作。
不同的问题,silverlight不能很好的工作。当你点击“添加文件”时,它不会启动一个对话框。
firebug中没有出现javascript错误。
发布于 2012-01-12 17:07:49
使用chunks或/和urlstream_upload:true
编辑:该错误是闪存错误。上面的设置应该可以解决这个问题。在没有这些设置的情况下,flash会有一些问题。我记不清那是什么了。来自plupload论坛的管理员:
您不使用块,也不要强制Plupload进入urlstream模式...这可能是您的服务器上的会话问题。你最近是否在你的服务器上激活了会话?如果是会话问题,在您的情况下,最简单的解决方法是将: urlstream_upload选项设置为true。
http://www.plupload.com/punbb/viewtopic.php?pid=4308#p4308
发布于 2012-10-06 01:07:00
添加以下配置:
headers: {
Authorization: ""
}发布于 2011-07-21 01:53:17
您应该检查要将文件上载到的文件夹/目录是否存在,这将有助于您
https://stackoverflow.com/questions/6576985
复制相似问题