⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 web.config

📁 一个C# ASP.NET 大文件上传组件
💻 CONFIG
字号:
<?xml version="1.0"?><configuration>	<configSections>		<sectionGroup name="system.web">			<section name="neatUpload" type="Brettle.Web.NeatUpload.ConfigSectionHandler, Brettle.Web.NeatUpload" allowLocation="true"/>		</sectionGroup>	</configSections>	<appSettings/>	<!--           If you are using .NET 2.0, you can use the connectionStrings section to name your connectionStrings           and then use the connectionName attribute instead of the connectionString attribute when you add           the SqlServerUploadStorageProvider in the neatUpload section.	<connectionStrings>		<add connectionString="Server=.;Database=FileStorageTest;Trusted_Connection=True;" name="local_default"/>		<add connectionString="Server=.;Database=FileStorageTest;Trusted_Connection=True;" name="default"/>	</connectionStrings>  -->   <system.web>		<httpModules>			<add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule, Brettle.Web.NeatUpload"/>		</httpModules>		<!--             Set compilation debug="true" to insert debugging             symbols into the compiled page. Because this             affects performance, set this value to true only             during development.        -->		<compilation debug="true">			<assemblies>				<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>				<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>				<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>				<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>		<!--            The <authentication> section enables configuration             of the security authentication mode used by             ASP.NET to identify an incoming user.         -->		<authentication mode="Windows"/>		<!--            The <customErrors> section enables configuration             of what to do if/when an unhandled error occurs             during the execution of a request. Specifically,             it enables developers to configure html error pages             to be displayed in place of a error stack trace.        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">            <error statusCode="403" redirect="NoAccess.htm" />            <error statusCode="404" redirect="FileNotFound.htm" />        </customErrors>        -->		<!--        NeatUpload configuration        This section is optional if you use default settings                useHttpModule="true or false, defaults to true"        maxNormalRequestLength="up to 2097151 in KBytes, defaults to 4096"        maxRequestLength="up to 2097151 in KBytes, defaults to 2097151"        postBackIDQueryParam="parameter name, defaults to NeatUpload_PostBackID"        defaultProvider="friendly name, defaults to a FilesystemUploadStorageProvider using the system temp dir">        -->		<neatUpload defaultProvider="dbUploader">			<providers>				<add name="dbUploader" type="Hitone.Web.SqlServerUploader.SqlServerUploadStorageProvider, Hitone.Web.SqlServerUploader" connectionString="Server=.;Database=FileStorageTest;Trusted_Connection=True;" tableName="FileTable" dataColumnName="DataField" partialFlagColumnName="Partial"/>        <!--				<add name="dbVerboseUploader" type="Hitone.Web.SqlServerUploader.SqlServerUploadStorageProvider, Hitone.Web.SqlServerUploader" connectionName="default" tableName="FileTable" dataColumnName="DataField" partialFlagColumnName="Partial" fileNameColumnName="FileName" mimeTypeColumnName="MIMEType" hashAlgorithm="SHA1" hashColumnName="FileHash"/>				<add name="dbProcUploader" type="Hitone.Web.SqlServerUploader.SqlServerUploadStorageProvider, Hitone.Web.SqlServerUploader" connectionName="default" createProcedure="CreateBlob" openProcedure="OpenBlob" readProcedure="ReadBlob" writeProcedure="WriteBlob" deleteProcedure="DeleteBlob" cleanupProcedure="CleanUpBlob" renameProcedure="RenameBlob" storeHashProcedure="FinalizeBlob" hashAlgorithm="MD5"/>        -->			</providers>		</neatUpload>	</system.web></configuration>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -