IIS文件上传文件大小配置
网站上传文件、图片等是经常的事情,但是IIS默认上传文件的大小限制在200K以下,有些比较大的文件是无法直接上传的,这样就给我们造成了一些不必要的麻烦,今天部落就和大家一起探讨一下如何设置IIS使默认上传文件大小大约200K。 其实我们只需要在服务器端对
网站上传文件、图片等是经常的事情,但是IIS默认上传文件的大小限制在200K以下,有些比较大的文件是无法直接上传的,这样就给我们造成了一些不必要的麻烦,今天部落就和大家一起探讨一下如何设置IIS使默认上传文件大小大约200K。
其实我们只需要在服务器端对IIS进行一些修改即可突破这个200K的限制,方法如下:
第一步:直接编辑配置数据库设为允许
在IIS中右键“本地计算机”选择“属性”,钩选“允许直接编辑配置数据库”。
第二步:关闭“IIS Admin Service”服务
依次打开“控制面板--管理工具--服务”,在其中右边找到“IIS Admin Service”,选中该项并点击鼠标右键,选中“停止”即可关闭该服务。
第三步:修改“MetaBase.xml”文件
依次打开“X:/WINDOWS/system32/inetsrv”,在该文件夹中找到“MetaBase.xml”文件,将“MetaBase.xml”用记事本打开,在其中搜索“AspMaxRequestEntityAllowed”,将后面的“204800”改成“1024000000”保存文件。
注意:“X”为系统盘的盘符,在执行第二步之前请确保第一步已经操作,否则将无法保存修改后的“MetaBase.xml”文件。
第四步:开启“IIS Admin Service”服务
修改完成后再按照第一步的操作将“IIS Admin Service”服务开启。
经过以上简单的三步设置我们已经将IIS上传文件的大小限制改为了100M,当然你可以随意对上传文件的大小进行修改。
注:本实例的操作环境为Windows 2003、IIS6.0,其他操作系统下设置类似。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

To work on file upload we are going to use the form helper. Here, is an example for file upload.

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

Validator can be created by adding the following two lines in the controller.

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

CakePHP is an open source MVC framework. It makes developing, deploying and maintaining applications much easier. CakePHP has a number of libraries to reduce the overload of most common tasks.

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an
