操作系统是2003
Metabase.xml,web.config都加了相应的大小了。。   <location path="UploadHandler.aspx">
    <system.web>
      <httpRuntime maxRequestLength="2097151" executionTimeout="3600" />
  <authorization>
        <allow users="?" />
      </authorization>
    </system.web>
  </location>但只要上传大于4M的文件,就报500错误。。还未Post我保存的那个页面,所以断点调试也不行。。
快要疯掉了。。

解决方案 »

  1.   

    你是不是在页面中使用的时候忘记改大小了<script type="text/javascript">
    12         var swfu;
    13         window.onload = function () {
    14             swfu = new SWFUpload({
    15                 // Backend Settings
    16                 upload_url: "upload.aspx",  // Relative to the SWF file
    17                 post_params : {
    18                     "ASPSESSID" : "<%=Session.SessionID %>"
    19                 },
    20  
    21                 // File Upload Settings
    22                 file_size_limit : "2048",   // 2MB
    23                 file_types : "*.jpg",
    24                 file_types_description : "JPG Images",
    25                 file_upload_limit : "0",    // Zero means unlimited
    26  
    27                 // Event Handler Settings - these functions as defined in Handlers.js
    28                 //  The handlers are not part of SWFUpload but are part of my website and control how
    29                 //  my website reacts to the SWFUpload events.
    30                 file_queue_error_handler : fileQueueError,
    31                 file_dialog_complete_handler : fileDialogComplete,
    32                 upload_progress_handler : uploadProgress,
    33                 upload_error_handler : uploadError,
    34                 upload_success_handler : uploadSuccess,
    35                 upload_complete_handler : uploadComplete,
    36  
    37                 // Flash Settings
    38                 flash_url : "swfupload/swfupload_f9.swf",   // Relative to this file
    39  
    40                 custom_settings : {
    41                     upload_target : "divFileProgressContainer"
    42                 },
    43  
    44                 // Debug Settings
    45                 debug: false
    46             });
    47         }
    48     </script>