IIS 限制上传大小的问题 200k (SWFUpload_ASP操作的时候更改了本身的限制,还需要更改iis的大小)

简介: 1、WIN2003服务器本身默认上传200KB,其解决办法如下:   先进"服务"关闭iis admin service服务   会提示:World Wide Web Publishing Service 和 HTTP SSL这两个也会停止。

1、WIN2003服务器本身默认上传200KB,其解决办法如下:

  先进"服务"关闭iis admin service服务

  会提示:World Wide Web Publishing Service 和 HTTP SSL这两个也会停止。

  找到 windows/system32/inetsrv/下的metabase.xml 用记事本打开.

  编辑其中的 ASPMaxRequestEntityAllowed 把他修改为需要的值,默认为204800,即200K

  最后重启iis admin service服务!

  2、程序设计的时候只允许上传200KB,具体自己修改即可。

 

 

window.onload = function() {
            var settings = {
                flash_url : "swfupload/swfupload.swf",
                upload_url: "upload.asp",
               
                file_size_limit : "100000 MB",
                file_types : "*.*",
                file_types_description : "All Files",
                file_upload_limit : 100,
                file_queue_limit : 0,
                custom_settings : {
                    progressTarget : "fsUploadProgress",
                    cancelButtonId : "btnCancel"
                },
                debug: false,

                // Button settings
                button_image_url: "images/filebotton.png",
                button_width: "65",
                button_height: "29",
                button_placeholder_id: "spanButtonPlaceHolder",
                button_text: '',
                button_text_style: ".theFont { font-size: 16; }",
                button_text_left_padding: 12,
                button_text_top_padding: 3,
               
                // The event handler functions are defined in handlers.js
                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,
                queue_complete_handler : queueComplete    // Queue plugin event
            };

            swfu = new SWFUpload(settings);
         };

目录
相关文章
|
移动开发
详解IIS中的重写工具下关于操作重定向URL中的{R:N}与{C:N}
详解IIS中的重写工具下关于操作重定向URL中的{R:N}与{C:N}
162 0
详解IIS中的重写工具下关于操作重定向URL中的{R:N}与{C:N}
|
C# 数据安全/隐私保护
C# 操作IIS方法集合
C# 操作IIS方法集合
120 0
|
Web App开发 C# Windows
|
C# 数据安全/隐私保护 Windows
|
C# 数据安全/隐私保护 Windows
C#操作IIS完整解析
原文:C#操作IIS完整解析 最近在为公司实施做了一个工具,Silverlight部署早已是轻车熟路, 但对于非技术人员来说却很是头疼的一件事,当到现场实施碰到客户情况也各不相同, 急需一个类似系统备份的"一键工具"快速实现应用程序部署和数据库进行关联.
962 0
|
C# 数据安全/隐私保护
C# 操作IIS方法集合
原文:C# 操作IIS方法集合 如果在win8,win7情况下报错:未知错误(0x80005000) 见http://blog.csdn.net/ts1030746080/article/details/8741399 using System; using System.
877 0