用Uploadify上傳文件 遇到錯誤:SecurityError #2156 null

使用swfupload出現SecurityError Error #2156問題

使用swfupload出現SecurityError Error #2156問題
原來網站是在一個服務器運行是正常的,上傳文件也正常。但是當把網站遷移到另外一個服務器時,上傳文件就會出現在這個錯誤:
2156
SecurityError
Error #2156
null

一直上傳失敗

檢查了老半天,在網上也問了很多人,都說是目錄權限錯誤,但我檢查過後,是沒有問題的。

最後在官網上看到如下的解釋:

The same application published to server by two site,
one is OK, and other site show the error message, like this:

SWF DEBUG: ReturnUploadStart: Exception occurred: null
SWF DEBUG: Event: uploadError(): Upload Failed. Exception occurred: 2156
SWF DEBUG: SecurityError
SWF DEBUG: Error #2156
SWF DEBUG: null
SWF DEBUG: Event: uploadComplete : Upload cycle complete.

and in the page, the placehoader is white, no appoint image。who can tell me why?Thank you!

sorry, my English is not good!

gyphie Says:

I'm not sure what is triggering your error but here are some guesses:

1) You are uploading to a different domain (or port number) than that which hosts your swfupload.swf file.
2) You are loading swfupload.swf via https (SSL) but are using an HTTP url for your upload url.

If you must upload to a different domain you must place a crossdomain.xml file on your server. See Adobe's live docs for details on setting it up.

於是我改了一下網站的端口(原來是87,改爲88)

呵呵。居然成功了,個人認爲應該是Flash組件對我原來的這個端口不支持吧。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章