Namespace: ITHit.WebDAV.Server.ResumableUpload
The PutUploadProgressAndResumeModule type exposes the following members.
Name | Description | |
---|---|---|
PutUploadProgressAndResumeModule | Initializes a new instance of the PutUploadProgressAndResumeModule class |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Always use this module if you implement resumable upload features and your WebDAV server is hosted in application that uses ASP.NET 2.0 pool. It is recommended to enable this module even if you do not need any resumable upload fetures but host your server is using ASP.NET 2.0 pool. This module is not required for application running in ASP.NET 4.0 pool or later and is ignored if enabled.
Without this module when a file is being uploaded to the server running as ASP.NET application with 2.0 pool, the file will be first saved to temporary upload folder. Only when entire file is uploaded it becomes available for .NET user code. PutUploadProgressAndResumeModule eliminates this problem passing file content directly to Engine. This problem is specific to ASP.NET/IIS and you do not need this module when creating HttpListener-based server or if you are using ASP.NET 4.0 pool.
Note: Always use [!:ITHit.Server.ContextAsync<THierarchyItemAsync>(HttpContext)] overloaded constructor when utilizing this module.
Example of configuraiton for IIS 8 integrated mode and IIS 7.x integrated mode:
<system.webServer> <modules> <add name="PutUploadProgressAndResumeModule" type="ITHit.WebDAV.Server.ResumableUpload.PutUploadProgressAndResumeModule, ITHit.WebDAV.Server" preCondition="integratedMode" /> </modules> </system.webServer>
<system.web> <httpModules> <remove name="FileAuthorization"/> <add name="PutUploadProgressAndResumeModule" type="ITHit.WebDAV.Server.ResumableUpload.PutUploadProgressAndResumeModule, ITHit.WebDAV.Server" /> </httpModules> </system.web>