2017-06-22 149 views
0

Used previously without a broble. But now:jQuery的uploadify錯誤:遺漏的類型錯誤:無法讀取的不確定

財產 'queueData'

enter image description here

All relationships are in accordance with the documentation

$("#file_upload").uploadify({ 
      'method' : 'post', 
      'buttonClass' : 'upload-photo-file', 
      'formData' : { 'cmd' : 'download', 'path' : pathPhoto, 'user' : user}, 
      'auto'  : false, 
      'buttonText' : 'Выбрать фото', 
      'progressData' : 'speed', 
      'swf'  : '/uploadify.swf', 
      'uploader' : '/uploadify.php', 
      // Some options 
      'onUploadSuccess' : function(file, data, response) { 
       $('.results').html(data); 
      }, 
      'itemTemplate' : '<div id="${fileID}" class="uploadify-queue-item">\ 
       <div class="cancel">\ 
        <a class="del-moder-photo" href="javascript:$(\'#${instanceID}\').uploadify(\'cancel\', \'${fileID}\')"><i class="fa fa-times"></i></a>\ 
       </div>\ 
       <span class="fileName" >${fileName} (${fileSize})</span>\ 
       <span class="data"></span>\ 
       <div class="uploadify-progress"><div class="uploadify-progress-bar"><!--Progress Bar--></div></div>\ 
      </div>' 
     }); 

What happened?

回答

0

檢查一下您是否閃現安裝,如果你這樣做,請確保您的域位於「允許」部分。

如果您使用Chrome

  1. 轉到:鉻://設置/內容/閃存
  2. 添加在爲您的域允許部分新的條目。

然而,這隻會您的節點上運行,如果它的某些客戶端的解決方案,你必須通知他們或找一些其他的解決辦法,以觸發您從您的網站/應用需要閃光燈,不知何故。

希望它適合你。

相關問題