NeatUpload Documentation

IUploadModule.ConvertToUploadedFile Method 

Converts an HttpPostedFile to an UploadedFile that is associated with a particular control.

UploadedFile ConvertToUploadedFile(
   string controlUniqueID,
   HttpPostedFile file
);

Parameters

controlUniqueID
The UniqueID of the control with which the returned UploadedFile should be associated. If the UploadedFile is added to an UploadedFileCollection, the UniqueID can be used to retrieve it.
file
The HttpPostedFile to convert to an UploadedFile.

Return Value

The UploadedFile that corresponds to the HttpPostedFile, or null if the the module does not support such conversion.

See Also

IUploadModule Interface | Brettle.Web.NeatUpload Namespace