我的PHP很简单,
set_time_limit(0);  $max_file_size_in_bytes = 2147483647; // 2GB in bytes    $uploadDir = "C:/Inetpub/wwwroot/sfvod/manager/files/";     $filename = $_FILES['Filedata']['name'];    $uploadFile = $uploadDir . $filename;     move_uploaded_file($_FILES['Filedata']['tmp_name'], $uploadFile); 
以下是DEBUG出来的结果。
不超过两M没有问题,超过2M后就出问题。显示上传进度是完成。SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.*
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_1
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_1
SWF DEBUG: Global Post Item: PHPSESSID=<?php echo session_id(); ?>
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to upload.php for File ID: SWFUpload_0_1
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_1
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_1. Bytes: 98304. Total: 9863056
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_1. Bytes: 524288. Total: 9863056
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_1. Bytes: 917504. Total: 9863056
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_1. Bytes: 2883584. Total: 9863056
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_1. Bytes: 3670016. Total: 9863056
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_1. Bytes: 3932160. Total: 9863056
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_1. Bytes: 6815744. Total: 9863056
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_1. Bytes: 7536640. Total: 9863056
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_1. Bytes: 9863056. Total: 9863056
SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_1 Data: <br />
SWF DEBUG: <b>Notice</b>:  Undefined index:  Filedata in <b>c:\inetpub\wwwroot\sfvod\manager\upload.php</b> on line <b>10</b><br />
SWF DEBUG: <br />
SWF DEBUG: <b>Notice</b>:  Undefined index:  Filedata in <b>c:\inetpub\wwwroot\sfvod\manager\upload.php</b> on line <b>17</b><br />
SWF DEBUG: 
SWF DEBUG: 
SWF DEBUG: Event: uploadComplete : Upload cycle complete.

解决方案 »

  1.   

    修改php.ini
    upload_max_filesize = 2M 
    post_max_size = 8M 
    memory_limit = 8M   
    max_execution_time = 30  
    这些值都应该相应的改大  其中 upload_max_filesize  表示设置最大可以上传的附件值
      

  2.   

    我下了一个php-4.4.2-installer.exe安装的
    我的是XP的IIS加上PHP,不知道PHP。INI文件在哪里?
    请指教。我用的上传方法是SWFUPLOAD。