Click or drag to resize
MediaFileInfo Constructor (HttpPostedFile, Int32)

Note: This API is now obsolete.

Constructor - creates a new MediaFileInfo object from posted file.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use 'CMS.MediaLibrary.MediaFileInfo(CMS.Base.IUploadedFile, System.Int32)' instead. You can use the 'CMS.Base.UploadExtensions.ToUploadedFile' extensions method for converting 'System.Web.HttpPostedFile' to the 'CMS.Base.IUploadedFile'.")]
public MediaFileInfo(
	HttpPostedFile postedFile,
	int libraryId
)

Parameters

postedFile
Type: System.WebHttpPostedFile
Posted file
libraryId
Type: SystemInt32
ID of the library the file will be assigned to
See Also