MINIUI解決SWFUpload上傳文件組件使用時2049錯誤

看他們好多人遇到這個問題 我也遇到了,並且半天沒解決啊  百度谷歌搜索了一大圈dom

基本解決方案是什麼根目錄下放crossdomain.xml文件url

內容爲以下spa

 

 <?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" headers="*" secure="false"/>
</cross-domain-policy>

 

 結果我發現了錯誤依然存在,忽然看到了有一篇文章使用徹底的路徑我試了下嘿 還真能夠上代碼orm

 

        <input id="fileupload1" class="mini-fileupload" name="FSelect" limittype="*.xls;*.xlsx" uploadurl="../../DynamicForm/UserInformation/Excel_DR.aspx" flashurl="../../swfupload/swfupload.swf" onuploadsuccess="onUploadSuccess" onuploaderror="onUploadError" />

 

  上圖是個人源代碼 改成以下就能夠了xml

 

<input id="fileupload1" class="mini-fileupload" name="FSelect" limittype="*.xls;*.xlsx" uploadurl="http://IP:端口/DynamicForm/UserInformation/Excel_DR.aspx" flashurl="http://IP:端口/swfupload/swfupload.swf" onuploadsuccess="onUploadSuccess" onuploaderror="onUploadError" />

 

  問題到此成功解決~blog

相關文章
相關標籤/搜索