|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Web.Config
Sections
Describes
the resource that specified configuration settings apply to. <configuration> <configSections> <!-- Start:configSections\sectionGroup Section --> <sectionGroup name="mediachase.fileUploader" type="Mediachase.FileUploader.Configuration.MediachaseFileUploaderSectionGroup,
Mediachase.FileUploader"> <section
name="fileUploaderContext" type="Mediachase.FileUploader.Configuration.FileUploaderContextSection,
Mediachase.FileUploader"/> <section
name="tempFileStorage" type="Mediachase.FileUploader.Web.Configuration.TempFileStorageSection,
Mediachase.FileUploader"/> <section
name="uploadProgress" type="Mediachase.FileUploader.Web.Configuration.UploadProgressSection,
Mediachase.FileUploader"/> <section
name="fileUploadControl" type="Mediachase.FileUploader.Web.Configuration.FileUploadControlSection,
Mediachase.FileUploader"/> </sectionGroup> <!-- End:configSections\sectionGroup Section --> </configSections> <!-- Start:mediachase.fileUploader Section --> <mediachase.fileUploader> <fileUploaderContext sessionUidKey="" tempFileStorageProviderKey="" httpPostMaxSize="" httpPostBufferSize="" > <filters> <add
type="" requestPath="" /> </filters> <contentTypes> <add
extension="" name="" /> </contentTypes> </fileUploaderContext> <tempFileStorage defaultProvider="" enabled="" timeout=""> <providers> <add
name="McLocalDiskTempFileStorageProvider" type="Mediachase.FileUploader.Web.LocalDiskTempFileStorageProvider,
Mediachase.FileUploader" description="" tempStoragePath="%TEMP%" /> <add
name="McSqlTempFileStorageProvider" type="Mediachase.FileUploader.Web.SqlTempFileStorageProvider,
Mediachase.FileUploader" description="" connectionString="Connection String"
/> </providers> </tempFileStorage> <uploadProgress defaultProvider="" enabled="" timeout=""> <providers> <add
name="McInProcessProgressStateProvider" type="Mediachase.FileUploader.Web.InProcessUploadProgressProvider,
Mediachase.FileUploader" description=""
/> <add
name="McSqlProgressStateProvider" type="Mediachase.FileUploader.Web.SqlProgressStateProvider,
Mediachase.FileUploader" description="" connectionString="Connection String"
/> </providers> </uploadProgress> <fileUploadControl embeddedModePage="" iframeModePage="" popUpModePage="" /> </mediachase.fileUploader> <!-- End:mediachase.fileUploader Section --> <!-- Start:system.web Sections --> <system.web> <httpModules> <add name="Mediachase.FileUploader.McHttpModule" type="Mediachase.FileUploader.McHttpModule,
Mediachase.FileUploader"/> </httpModules> <httpHandlers> <add
verb="GET" path="McFileUploaderResources.axd" type="Mediachase.FileUploader.AssemblyResourceHandler,
Mediachase.FileUploader" /> </httpHandlers> </system.web> <!-- End:system.web Sections --> </configuration> sectionGroup Section
mediachase.fileUploader Section
fileUploaderContext Element
fileUploaderContext/filters
Element
Page Filter
specifies whether to allow or deny the Mediachase FileUploader.NET for the
ASP.NET pages. If you want
to modify the behavior, you need to add the filter element into the section. The
filters element supports three Subtags: add, remove and clear. 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.
fileUploaderContext/contentTypes
Element
Sometime
Web Browser doesn't send file content type. Content type uses to resolve
content type by file extension. Mediachase FileUploader.NET includes a lot pre-installed
content type, but you can extend or override it via web.config section. The contentTypes
element supports three Subtags: add, remove and clear.
tempFileStorage Element
tempFileStorage/providers
element
uploadProgress Element
uploadProgress/providers
element
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||