问题DEBUG现像
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1241. Total: 1241
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 404.
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Error Code: HTTP Error, File name: 新建 文本文档.txt, Message: 404找了一些资料,都说是由于FLASH找不到upload_url,要用绝对路径。
但是改了也不好用,而且我把代码换到XP下却好用。

解决方案 »

  1.   

    <script type="text/javascript">
        var swfu;    window.onload = function() {
            var settings = {
                flash_url: "swfupload/swfupload.swf",
                upload_url: "upload.php", // Relative to the SWF file
        post_params: { "PHPSESSID": "<?php echo session_id(); ?>" },
                file_post_name: "Filedata", // 文件对象的名称,默认Filedata,可以自己改.后台接收就靠它识别
                 file_size_limit: "1024 MB",
                file_types: "*.*",
                file_types_description: "All Files",
                file_upload_limit: 0,
                file_queue_limit: 1,
                custom_settings: {
                    progressTarget: "fsUploadProgress",
                    cancelButtonId: "btnCancel"
                },
                debug: true,            // Button settings
                button_image_url: "images/TestImageNoText_65x29.png", // Relative to the Flash file
                button_width: "65",
                button_height: "29",
                button_placeholder_id: "spanButtonPlaceHolder",
                button_text: '<span class="theFont">选择文件</span>',
                button_text_style: ".theFont { font-size: 12; }",
                button_text_left_padding: 12,
                button_text_top_padding: 3,            file_dialog_start_handler: fileDialogStart,
                file_queued_handler: fileQueued,
                file_queue_error_handler: fileQueueError,
                file_dialog_complete_handler : fileDialogComplete,            //upload_start_handler : uploadStart,
                upload_progress_handler: uploadProgress,
                upload_error_handler: uploadError,
                upload_success_handler: uploadSuccess,
                upload_complete_handler: uploadComplete
            };        swfu = new SWFUpload(settings);
        };
      

  2.   

    你确认,upload.php能够正常执行?
      

  3.   

    我在XP下用的这个PHP,是好用的,就是不知道为什么换到2003SERVER下就不行了;。
      

  4.   

    这个问题我也遇到了,跟楼主一样,在本机(win2003)是好的,上传到服务器win2003就不行了,小文件可以,但是65MB就不行了