|
|||
Temporary File-StoreMediachase FileUploader.NET uses temporary file store to optimize large file upload, because ASP.NET is built in such way that all client requestsare kept in memory as one data thread. Mediachase FileUploader.NET has solved this problem. Files in post-request are saved in temporary location and replaced with active markers with fixed size (few bytes), which allows to make post request fixed size. In local disk mode, temporary files are stored in a local disk. In Sql mode, progress states are stored in a Sql Server database and the worker process talks directly to Sql. Configuring Local Disk Mode To use local disk mode, set the TempStorage and TempStoragePath attributes of the configuration setting for in-process mode. <Mediachase.FileUploader.McHttpModule> <httpFile TempStorage="LocalDisk" ="%TEMP%"/> </Mediachase.FileUploader.McHttpModule> Configuring Sql Server Mode To use SQL Server, first run either InstallSqlTemporaryStorage.sql
or InstallPersistSqlTemporaryStorage.sql on the computer with SQL Server
that
Both of these script files are installed by default at the following location: FileuploaderInstallDir\Sql Scripts\Next, set the TempStorage attribute of the httpFile element to SqlServer in the Web.config file of the application. Finally, set the TempStorageConnectionString attribute to Integrated Security=SSPI;data source=serverName;Initial Catalog=databaseName; . <Mediachase.FileUploader.McHttpModule> <httpFile TempStorage="SqlServer" TempStorageConnectionString="Integrated Security=SSPI;data source=serverName; Initial Catalog =databaseName;"/> </Mediachase.FileUploader.McHttpModule> |
|||