Click or drag to resize
MediaFileInfo Constructor (IUploadedFile, Int32, String, Int32, Int32, Int32, Int32)
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#
public MediaFileInfo(
	IUploadedFile uploadedFile,
	int libraryId,
	string librarySubfolder,
	int width,
	int height,
	int maxSideSize,
	int siteId
)

Parameters

uploadedFile
Type: CMS.BaseIUploadedFile
Posted file
libraryId
Type: SystemInt32
ID of the library the file will be assigned to
librarySubfolder
Type: SystemString
Library subfolder path where file should be saved
width
Type: SystemInt32
Width of the image
height
Type: SystemInt32
Height of the image
maxSideSize
Type: SystemInt32
Max side size of the image
siteId
Type: SystemInt32
ID of the site new media file is related to
See Also