Page Filter

Page Filter specifies whether to allow or deny the FileUploader.NET for the ASP.NET pages.

If you want to modify the FileUploader.NET behaviour, you need to add the pageFilter element into Mediachase.FileUploader.McHttpModule section.

The pageFilter element supports two Subtags: allow and deny.

Subtag Description
<allow> Allows access to a page based on the following:

RequestPath: The PatternMatch mask expression allows you to use two basic character types: literal (normal) text characters and metacharacters. Metacharacters used to ? and * characters.
<deny> Denies access to a page based on the following:

RequestPath: The PatternMatch mask expression allows you to use two basic character types: literal (normal) text characters and metacharacters. Metacharacters used to ? and * characters.

At run time, if the pageFilter element is present:

the FileUploader module iterates through the <allow> and <deny> tags until it finds the first access rule that fits a particular Request Path, if the FileUploader module couldn't find tags, it ignores page.

If the pageFilter element is not present:

the FileUploader.NET optimizes all pages. So, The default page filter rule is <allow RequestPath="*"/>

In configuration section:

The following example allows the FileUploader.NET to optimize all pages and ignore all pages which request path includes the 'WebForm' string.

  <Mediachase.FileUploader.McHttpModule>
	<pageFilter>
		<allow RequestPath="*"/>
		<deny RequestPath="*WebForm*"/>
	</pageFilter>
  </Mediachase.FileUploader.McHttpModule>


Copyright 2005 Mediachase. All rights reserved.