Flash Player 10.1 的 Flash 文件上传问题

发布于 2024-09-10 01:18:51 字数 1675 浏览 0 评论 0原文

我有一个文件上传脚本来将图片上传到服务器。它在所有浏览器中都工作正常,但是当我昨天在 Firefox 3.6.6 中将 Flash Player 升级到 10.1 时,它停止工作。

我用另一台计算机重新测试,一旦安装 Flash Player 10.1,它就停止工作。

我做了一些调试,发现 FileReference 监听器返回的错误是 I/O 错误。

这是没有意义的,因为该文件位于服务器中,并且在所有其他浏览器中都可以正常工作。

我将 allowScriptAccess"samedomain" 更改为 "always",但运气不佳。

我还在上传 URL 中使用了绝对路径。当我在本地开发环境中运行它时,它可以工作,但在生产服务器中不起作用。我已将服务器中文件夹的安全设置更改为 777,但仍然不起作用。
会是什么?它在其他 Flash Player 版本中完美运行。

嵌入电影的 HTML:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="550" height="300" id="test" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="wmode" value="transparent" />
<param name="movie" value="uploader_.swf?id=<?=$owner_id?>&ga=<?=$ga_c at?>&sid=<?=$ukey;?>" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />
<embed src="uploader_.swf?id=<?=$owner_id?>&ga=<?=$ga_cat ?>&&sid=<?=$ukey;?>" quality="high" bgcolor="#ffffff" width="550" height="300" name="test" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

SWF:

var item:FileReference;
//...
//some code and processing of vars needed in the php script to store in the DB
//...
item.upload("upload.php?sid="+sid+"&id="+uid+"&ga="+ga+"&seq="+ sequence); 

I have a file upload script to upload pictures to a server. It has been working fine in all browsers but when I upgraded the Flash Player to 10.1 in Firefox 3.6.6 yesterday it stop working.

I retested with another computer and as soon as I installed the Flash Player 10.1 it stopped working.

I did some debbuging and noticed that the error return from the FileReference listener is I/O error.

It doesn't make sense because the file is in the server and it works fine in all other browsers.

I changed allowScriptAccess from "samedomain" to "always" without luck.

I also used absolute path in the upload URL. When I run it in my local development environment it works but it doesn't work in the production server. I have changed the security settings of the folders in the server to 777 and still doesn't work either.
What can it be? It works perfectly in other Flash Player versions.

The HTML that embeds the movie:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="550" height="300" id="test" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="wmode" value="transparent" />
<param name="movie" value="uploader_.swf?id=<?=$owner_id?>&ga=<?=$ga_c at?>&sid=<?=$ukey;?>" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />
<embed src="uploader_.swf?id=<?=$owner_id?>&ga=<?=$ga_cat ?>&&sid=<?=$ukey;?>" quality="high" bgcolor="#ffffff" width="550" height="300" name="test" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

SWF:

var item:FileReference;
//...
//some code and processing of vars needed in the php script to store in the DB
//...
item.upload("upload.php?sid="+sid+"&id="+uid+"&ga="+ga+"&seq="+ sequence); 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

北斗星光 2024-09-17 01:18:51

我认为这个问题还没有解决...参见 https: //bugs.adobe.com/jira/browse/FP-1044

[更新]
快照来自镜像

在此处输入图像描述

I don't think this problem has been solved yet...See https://bugs.adobe.com/jira/browse/FP-1044

[update]
Snapshot from a mirror of the Internet Wayback Machine

enter image description here

不再见 2024-09-17 01:18:51

右键单击电影并检查您的全局设置,根据需要进行调整。自从安装 10.1 以来,我遇到过类似的权限问题。安全更加严格。

Right click on the movie and check your global settings, adjust as needed. I've had permission issues like those before since installing 10.1. Security is tighter.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文