Is it possible to restrict the allowed file size for uploading in IIS 7.5 by file type?

I want to allow 1MB to images (jpg, png, gif) and 10MB to pdf's and zip's.

Is that possible?

BTW, I'm hosting classic asp sites, and I want to restict it server-side and globally.

Thank you in advance.

有帮助吗?

解决方案

You can use Request Filtering globally/website-level in IIS Server.

Please refer this article. You need to Edit Feature for the particular File Extension.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top