用Uploadify上传文件 遇到错误:SecurityError #2156 null
2015-03-28 18:00
302 查看
使用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:
June 5, 2009 - 9:37am
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组件对我原来的这个端口不支持吧。
使用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:
June 5, 2009 - 9:37am
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组件对我原来的这个端口不支持吧。
相关文章推荐
- hadoop fs -put 上传文件遇到错误2 hadoop fs -put /opt/exercise/ds.txt ds.txt
- 使用Uploadify(UploadiFive)多文件上传控件遇到的坑
- ASP 在Windows 2003 server使用纯代码上传大文件遇到的错误,及解决方法
- jquery 的uploadify上传时出错信息提示成中文!比如文件大小限制提示错误File size:Error
- uploadify上传大文件时出现404错误
- Uploadify提示-Failed,上传不了文件,跟踪onUploadError事件,errorMsg:2156 SecurityError Error #2156 null
- jenkins设置插件升级代理后构建项目上传文件到artifactory时遇到的413错误
- 将asp文件上传到server后遇到'Could not load type'的错误原因
- uploadify上传大文件时出现404错误
- uploadify使用中遇到flash文件上传按钮加载不出来
- 使用uploadify控件上传大文件错误处理记录
- tp3.2整合uploadify上传实现,解决上传中文TP文件上传保存错误问题
- uploadify上传文件 Firefox HTTP IO 302 错误
- 使用uploadify上传插件时遇到 NetworkError: 403 Forbidden http://xxxx/xxxx/ 错误
- uploadify swfupload 文件上传302错误
- 使用Uploadify(UploadiFive)多文件上传控件遇到的坑
- uploadify上传文件出现http302错误
- 遇到问题-----uploadify上传文件ServletFileUpload.isMultipartContent(request)为false
- Servlet3.0在文件上传时遇到的错误及解决方法
- 多文件上传---遇到的小问题---uploadify