Using FileUploader in Full Mode

This article show how to use Mediachase FileUploader in full mode

Full mode is using temporary files on server disk to optimize requests. You can't use standart controls on the same page in this mode.

[View Sample C#] [View Sample VB.NET]

In order to switch from Medium to Full you need to add one line into Mediachase.FileUploader.McHttpModule section:

<httpFile TempStoragePath="You Path" />
If Mediachase.FileUploader.McHttpModule already contains httpFile tag, just add TempStoragePath attribute.

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

Examples:
Code Description
<httpFile TempStoragePath="C:\temp"/> Save temporary files to 'C:\temp' folder.
<httpFile TempStoragePath="temp"/> Save temporary files to '<Your Web Site Foder>\temp' folder.
<httpFile TempStoragePath="%TEMP%"/> Save temporary files to ASP.NET User's temporary folder.

You have to set write rights for specified path for ASP.NET account.
Following steps are required to set write rights for temp folder:

  • Open folder in Windows Explorer
  • Right click folder and go to properties
  • In properties dialog select Security tave and click Add
  • Select ASPNET account and click Add
  • Select aspnet_wp account (computername\ASPNET) account and the check Allow checkbox for read/write rights
  • Clear all other Aloow or check Deny boxes
  • Close dialog


Copyright 2005 Mediachase. All rights reserved.