NeatUpload Documentation

UploadModule.ConvertToUploadedFile Method 

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

public static 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.

Remarks

If an IUploadModule is not installed or it does not support conversion, this method will delegate to ConvertToUploadedFile which will use the currently configured UploadStorageProvider

See Also

UploadModule Class | Brettle.Web.NeatUpload Namespace