Plupload的问题

cho*_*bo2 4 flash silverlight jquery html5 plupload

我正在使用plupload(v 1.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');
                }
            }
        });
Run Code Online (Sandbox Code Playgroud)

上面的代码有效.

如果我将它翻转到原来的状态(几周前的设置)

        runtimes: 'flash,html5,silverlight,'
Run Code Online (Sandbox Code Playgroud)

这是行不通的.所以这让我相信它是flash的一个问题,因为html 5的工作原理.

尽管如此,silverlight并不能解决不同的问题.单击"添加文件"时,它不会启动对话框.

在firebug中没有出现javascript错误.

jon*_*ari 5

使用块或/和urlstream_upload:true

编辑:该错误是闪存错误.以上设置应该可以解决问题.没有这些设置的闪存存在一些问题.我不记得确切的是什么.来自plupload论坛的管理员:

您不使用块,也不要强制Plupload进入urlstream模式...它可能是您服务器上的会话问题.您最近是否在服务器上激活了会话?如果会话问题是在您的情况下解决它的最简单方法,那就是将:urlstream_upload选项设置为true.

http://www.plupload.com/punbb/viewtopic.php?pid=4308#p4308