How to Fix Large File Upload Error 404 on IIS | Hướng dẫn từng bước một. The following error occurs when uploading large files to the website.
Server Error
404 – File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
To enable uploading large files you have to change a setting in IIS.
GHI CHÚ: The limit is approximately 28,6 MB because the limit of maxAllowedContent Length là 30000000 bytes.
To change the maximum upload setting, named “maxAllowedContent Length”, làm như sau:
1. Log on to the server that holds the IIS website, rồi bấm vàoBắt đầu, nhấp chuộtChương trình, nhấp chuộtCông cụ quản trị, nhấp chuộtInternet Information Services (IIS) Giám đốc;
2. Expand the website that you want to increase the maxAllowedContent Length;
3. Bấm đúp vàoRequest Filtering icon in the main window
GHI CHÚ: if you don’t have the Request Filtering icon, you need to install it through theAdd Roles lựa chọn. Get the instructions below.
4. Nhấn vàoHidden SegmentTab;
5. Click chuột phải web.config và bấm vàoEdit Feature Setting;
6. A new window namedEdit Request Filtering Settings xuất hiện;
7. DướiRequest Limitsphần mở đầu. enter a new larger value in theMaximum allowed content length (Bytes) box;
8. Nhấp chuộtĐƯỢC RỒI to apply the change.
Setup Request Filtering
The default installation of IIS 7 and later includes the Request Filtering role service or feature. If the Request Filtering role service or feature is uninstalled, you can reinstall it using the following steps.
máy chủ Windows 2012 R2
1. On the taskbar, nhấp chuột Quản lý máy chủ.
2. TRONG Quản lý máy chủ, nhấn vào Quản lý menu and then click Thêm vai trò và tính năng.
3. bên trong Thêm vai trò và tính năng wizard, nhấp chuột Kế tiếp. Select the installation type and click Kế tiếp. Select the destination server and click Kế tiếp.
4. Trên Vai trò máy chủ trang, mở rộng Web Server (IIS), mở rộng Web Server, mở rộng Bảo vệ, and then select Request Filtering. Nhấp chuột Kế tiếp.
5. Trên Select features trang, nhấp chuột Kế tiếp.
6. Trên Confirm installation selections trang, nhấp chuột Cài đặt.
7. Trên Kết quả trang, nhấp chuột Đóng.
How To
Note for IIS 7.0 users: Some of the steps in this section may require that you install the Microsoft Administration Pack for IIS 7.0, which includes a user interface for request filtering. To install the Microsoft Administration Pack for IIS 7.0, please see the following URL iis.net/expand/AdministrationPack
How to add a hidden segment
- Mở Internet Information Services (IIS) Giám đốc:
- If you are using Windows Server 2012 or Windows Server 2012 R2:
- On the taskbar, nhấp chuột Quản lý máy chủ, nhấp chuột Công cụ, rồi bấm vào Internet Information Services (IIS) Giám đốc.
- If you are using Windows 8 or Windows 8.1:
- Hold down the các cửa sổ key, press the letter X, rồi bấm vào Bảng điều khiển.
- Nhấp chuột Công cụ quản trị, and then double-click Internet Information Services (IIS) Giám đốc.
- If you are using Windows Server 2008 or Windows Server 2008 R2:
- On the taskbar, nhấp chuột Bắt đầu, point to Công cụ quản trị, rồi bấm vào Internet Information Services (IIS) Giám đốc.
- If you are using Windows Vista or Windows 7:
- On the taskbar, nhấp chuột Bắt đầu, rồi bấm vào Bảng điều khiển.
- Double-click Công cụ quản trị, and then double-click Internet Information Services (IIS) Giám đốc.
- If you are using Windows Server 2012 or Windows Server 2012 R2:
- bên trong Connections ngăn, go to the connection, site, application, or directory for which you want to modify your request filtering settings.
- bên trong Trang chủ ngăn, double-click Request Filtering.
- bên trong Request Filtering ngăn, nhấn vào Hidden Segments chuyển hướng, rồi bấm vào Add Hidden Segment… bên trong hành động ngăn.
- bên trong Add Hidden Segment hộp thoại, enter the relative path that you want to hide, rồi bấm vào ĐƯỢC RỒI.