Mediachase.FileUploader.McHttpModule element

 Specifies the resource that specified configuration settings apply to.

<Mediachase.FileUploader.McHttpModule>
<httpPost MinSize="" MaxSize="" Redirect="" BufferSize=""/>
<httpFile MinSize="" MaxSize="" TempStorage="" TempStoragePath="" TempStorageConnectionString="" BufferSize="" />
<progressState Mode="" ConnectionString="" Timeout=""/>

<pageFilters>
<allow RequestPath=""/>
<deny RequestPath=""/>
</pageFilters>
</Mediachase.FileUploader.McHttpModule>

Optional Attributes

Attribute Description
MinSize

64-bit integer that represents the minimal post or file upload size in kilobytes.

Default value: not use

MaxSize 64-bit integer that represents the maximum post or file upload size in kilobytes.

Default value: not use
Redirect Redirect path string. If request is larger or other exception is generated, you will be redirected to the page specified in Redirect attribute.

Default value: not use
BufferSize

64-bit integer that represents the buffer size in bytes, which Mediachase FileUploader will use to process request. You can change this value for better optimization.

Default value: 65536

TempStoragePath Temporary folder path.

Default value: not use

Note: Value of TempStoragePath attribute can either be full path to a folder or relative path. The FileUploader.NET supports the environment variables.
RequestPath

Allow or denies access to a page. The PatternMatch mask expression allows you to use two basic character types: literal (normal) text characters and metacharacters. Metacharacters used to ? and * characters.

Default value: the FileUploader.NET optimizes all pages.

Mode

Specifies where to store the progress state. InProcess or SqlServer.

Default value: InProcess

ConnectionString

Specifies the connection string for a SQL Server. For example, "data source=localhost;Integrated Security=SSPI;Initial Catalog=northwind". This attribute is required when Mode is SQLServer.

Default value : empty string.

Timeout

When using SqlServer mode to store progress information, specifies the wait time before terminating the attempt to execute a sql command and generating an error.
 
Default value: default sql command timeout.

TempStorage new

Specifies where to store the temporary file. LocalDisk or SqlServer or None.

Default value: None; Local Disk if TempStoragePath attribute is present; Sql Server if TempStorageConnectionString attribute is present.

TempStorageConnectionString new

Specifies the connection string for a SQL Server. For example, "data source=localhost;Integrated Security=SSPI;Initial Catalog=northwind". This attribute is required when Mode is SQLServer.

Default value : empty string.


Example

The following example allows the FileUploader.NET to optimize all pages and ignore all pages which request path includes the 'WebForm' string; sets 500kb buffer size and sets temp folder by enviroment string. 

<Mediachase.FileUploader.McHttpModule>
<httpPost BufferSize="512000"/>
<httpFile TempStoragePath="%TEMP%" />
<pageFilters>
<allow RequestPath="*"/>
<deny RequestPath="*WebForm*"/>
</pageFilters>
</Mediachase.FileUploader.McHttpModule>


Copyright 2005 Mediachase. All rights reserved.