Click or drag to resize
HttpPostedFileExtensionsToUploadedFile Method (HttpPostedFile)
Returns a wrapper object over HttpPostedFile implementing IUploadedFile interface.

Namespace: CMS.Base.UploadExtensions
Assembly: CMS.AspNet.Platform (in CMS.AspNet.Platform.dll) Version: 13.0.131
Syntax
C#
public static IUploadedFile ToUploadedFile(
	this HttpPostedFile postedFile
)

Parameters

postedFile
Type: System.WebHttpPostedFile

Return Value

Type: IUploadedFile

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpPostedFile. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also