1

Uplodify 在 Firefox 中不起作用,它给出 HTTP:403 错误。我无法追踪问题。它在 Chrome 中运行良好。但不能在Firefox中工作。下面是我的代码

<script src="../Skills4Project/js/jquery-1.6.4.min.js" type="text/javascript"></script>
<script src="jquplodify/jquery.uploadify.v2.1.4.min.js" type="text/javascript"></script>
<script src="jquplodify/swfobject.js" type="text/javascript"></script>


      $('#imageUpload').uploadify({
                    'uploader': 'jquplodify/uploadify.swf',
                    'script': '/_layouts/Skills4Project.FreelancerProfile/UploadProfileImageInList.aspx?uid=' + $("#<%= hdnPUserId.ClientID %>").val(),
                    'cancelImg': 'jquplodify/images/cancel.png',
                    'fileExt': '*.jpg;*.gif;*.png',
                    'fileDesc': 'Image Files (.JPG, .GIF, .PNG)',
                    'multi': false,
                    'auto': false,
                    'buttonText': 'Browse',
                    'queueID': 'custom-queue',
                    'queueSizeLimit': 8,
                    'simUploadLimit': 1,
                    'removeCompleted': false,
                    'onSelectOnce': function (event, data) {



                    },
                    'onComplete': function (event, ID, fileObj, response, data) {
                        if (response == "Failed") {
                            $("#imageUpload" + ID).find(".cancel").html("<img src='jquplodify/images/inactive.png' alt='fail' />");
                            $('#imageUpload' + ID).addClass('uploadifyError');
                            $('#imageUpload' + ID + ' .percentage').text(' - Upload Error');
                            return false;
                        }
                        else {

                            $("#imageUpload" + ID).find(".cancel").html("<img src='jquplodify/images/active.png' alt='done' />");
                            $("#dvSliderImages").css("display", "block");
                            window.__doPostBack("<%=btnImageRefresh.UniqueID%>", "");
                        }
                    },
                    'onCancel': function (event, ID, fileObj, data) {

                    },
                    'onAllComplete': function (event, data) {


                    },
                    'onError': function (event, ID, fileObj, errorObj) {
                        alert(errorObj.type + ' Error: ' + errorObj.info);
                    },
                    'onFallback': function () {
                        alert('Flash was not detected or flash version is not supported.');
                    }
                });

如果浏览器中没有安装 Flash,我也想显示消息。我怎样才能做到这一点?在 IE 和 Firefox 中,如果未安装 flash,则不会显示浏览按钮

问候, 普里亚

4

0 回答 0