plupload不能很好地显示,也许它的风格冲突

时间:2015-07-17 08:45:17

标签: css twitter-bootstrap modal-dialog plupload

我使用pluploadQueue上传文件,除了显示之外,所有功能都可以正常工作,我想也许是由于风格的混淆。我想知道,有没有人在此之前遇到过这个问题? 使用 MVC + bootstrap模式 + 引导程序对话框 + plupload Queue

我无法上传图片,如何获得报应?

 var uploader1 = $("#uploader1").pluploadQueue({
        // General settings
        runtimes: 'html5,silverlight,flash,html4',

        url: '@Url.Action("PLUpload", "Document")' + '?hasModification=true',

        chunk_size: '2mb',

        //Allow multiple files
        max_file_count: 10,

        // Specify what files to browse for
        filters: {
            // Maximum file size
            max_file_size: '20mb',
            // Specify what files to browse for
            mime_types: [
                { title: "Allowed files", extensions: "@Model.PLUploadAllowedExtensions" }
            ]
        },

        // Rename files by clicking on their titles
        rename: true,

        // Sort files
        sortable: true,

        // Enable ability to drag'n'drop files onto the widget (currently only HTML5 supports that)
        dragdrop: true,

        //// Views to activate
        views: {
            list: true,
            thumbs: false, // Show thumbs
            active: 'list'
        },

        init: {
            PostInit: function () {
                // Called after initialization is finished and internal event handlers bound. http://www.plupload.com/examples/events
                // The uploader must in html4 only mode be initialized fully before it's hidden: http://stackoverflow.com/questions/11898082/plupload-html4-add-files-dialog-not-triggering-in-ie
                // Prepare uploader
                if ('@Model.HasUploadFiles' == 'True') {

                    $("#hasChanged").attr('value', true);
                    $("#uploader1").show();
                } else {
                    $("#uploader1").hide();
                }


                //// Force resize function is not working. this is the fix for window size
                //$('#formID').css("overflow", "hidden");
            },
        },

        // Flash settings
        flash_swf_url: '@Url.Content("~/Scripts/plupload/Moxie.swf")',

        // Silverlight settings
        silverlight_xap_url: '@Url.Content("~/Scripts/plupload/Moxie.xap")'
    });

0 个答案:

没有答案