Click or drag to resize
HttpPostedFileExtensionsToUploadedFile Method (HttpPostedFileBase)
Returns a wrapper object over HttpPostedFileBase 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 HttpPostedFileBase postedFile
)

Parameters

postedFile
Type: System.WebHttpPostedFileBase

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 HttpPostedFileBase. 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