使用as和php上传图像时出现问题

使用as和php上传图像时出现问题,php,actionscript-3,flash,image-upload,Php,Actionscript 3,Flash,Image Upload,我在flash as3中有一个按钮,它使用一个类上传图像,然后在主电影中显示 我有一种宗教信仰: www.MYSITE.com/test/ www.MYSITE.com/test/uploads/ www.MYSITE.com/test/uploads/images/ 和一个名为image.php的文件 在www.MYSITE.com/test/uploads/image.php中 <?PHP $target_path = $_REQUEST[ 'path' ]; $target_pa

我在flash as3中有一个按钮,它使用一个类上传图像,然后在主电影中显示

我有一种宗教信仰:

  • www.MYSITE.com/test/
  • www.MYSITE.com/test/uploads/
  • www.MYSITE.com/test/uploads/images/
和一个名为image.php的文件 在www.MYSITE.com/test/uploads/image.php中

<?PHP
$target_path = $_REQUEST[ 'path' ];
$target_path = $target_path . basename( $_FILES[ 'Filedata' ][ 'name' ] ); 

if ( move_uploaded_file( $_FILES[ 'Filedata' ][ 'tmp_name' ], $target_path ) ) 
{
     echo "The file " . basename( $_FILES[ 'Filedata' ][ 'name' ] ) . " has been uploaded;";
} 
else
{
     echo "There was an error uploading the file, please try again!";
}
?>
因此,每当我尝试上传任何电影时,我都会在flash的输出中看到:

image uploading : 1
ERROR: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2038: I/O FILE ERROR. URL: http://www.MYSITE.com/test/image.php?path=uploads/"]

因此,我不知道错误在哪里,我已将所有涉及的文件的权限设置为777…

您只需授予访问权,即可将所有文件上传到您想要上传此文件的上传文件夹中。我认为没有文件访问权…

好的,我找到了错误所在,我调试了php文件,得到了一个500内部错误服务器,所以检查原因,我发现,权限是777,所以每个人都可以写,但我的服务器只允许自写,所以我将文件修改为747,它修复了错误。另一方面,当内部服务器错误一起崩溃时,会出现闪存。

只是猜测而已。在我查看值时检查1的错误:1;上载的文件超出了php.ini中的upload\u max\u filesize指令。但事实并非如此,因为我上传了一张5Kb的图片,但它不起作用……类似的讨论出现了错误#2038同时,问题似乎是在使用Firefox时,我使用的是Chrome,我已经查看了url路径,但没有问题。。。。
image uploading : 1
ERROR: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2038: I/O FILE ERROR. URL: http://www.MYSITE.com/test/image.php?path=uploads/"]