Provides an API (via its static members) that upload controls can use to access the currently installed upload module. The members of this class mostly delegate to the corresponding members of the IUploadModule that is installed in the <httpModules> section of the Web.config.
For a list of all members of this type, see UploadModule Members.
System.Object
Brettle.Web.NeatUpload.UploadModule
Brettle.Web.NeatUpload.MultiRequestUploadModule
public class UploadModule
Thread Safety
Public static (Shared in Visual Basic) members of this type are
safe for multithreaded operations. Instance members are not guaranteed to be
thread-safe.
Remarks
When IsEnabled returns true, an IUploadModule is installed in the <httpModules> section of the Web.config and will handle POST requests to the current request's URL that have a Content-Type header of "multipart/form-data" and contain a post-back ID in one of the following locations:
- If the post-back ID is in a query parameter named by PostBackIDQueryParam, all files in the request will be associated with the post-back ID. The files can be retrieved from the Files collection using the names of the file fields in the request. These names are typically the UniqueIDs of the controls that uploaded the files.
- If the post-back ID is in the form field named by PostBackIDFieldName, all files that occur after form field will be associated with the post-back ID. Those files can be retrieved from the Files collection using the names of the file fields in the request. These names are typically the UniqueIDs of the controls that uploaded the files.
- If the post-back ID is in a file field name prefixed by FileFieldNamePrefix, that file will be associated with the post-back ID. That file can be retrieved from the Files collection using the portion of the file field name after the first "-". That portion of the name typically corresponds to the UniqueID of the controls that uploaded the files.
For requests that specify a post-back ID, the module can also use "protected" configuration information associated with a particular file if the file field is preceded in the request by a field with a name consisting of the value
ConfigFieldNamePrefix followed by the files key in
Files collection (typically the uploading control's UniqueID).
In addition, BindProgressState provides information concerning the progress of the upload, CancelPostBack tells the module it should ignore the remainder of the upload, SetProcessingState associates an arbitrary object with an upload after it has been received but before the end of the request, and ConvertToUploadedFile to convert an HttpPostedFile into an UploadedFile
Requirements
Namespace:
Brettle.Web.NeatUpload
Assembly: Brettle.Web.NeatUpload (in Brettle.Web.NeatUpload.dll)
See Also
UploadModule Members | Brettle.Web.NeatUpload Namespace