zoukankan      html  css  js  c++  java
  • IIS 限制上传大小的问题 200k (SWFUpload_ASP操作的时候更改了本身的限制,还需要更改iis的大小)

    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_ "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);
             };

  • 相关阅读:
    oracle 如何用触发器实现更新刚插入的数据
    数据库好论坛
    不同的用户导入数据库
    用函数式编程技术编写优美的 JavaScript
    使用GridView自带的ToolTip隐藏过长的数据
    含有dropdownlist的gridview增删改查
    数据分析
    数据分析
    xshell链接vbox 上 nat 方式链接虚拟机
    测试开发方法概述
  • 原文地址:https://www.cnblogs.com/y0umer/p/3839400.html
Copyright © 2011-2022 走看看