| MediaFileInfoProviderCopyMediaFile Method  | 
            Copy media file.
            
 
Namespace: CMS.MediaLibraryAssembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 9.0.0
Syntaxpublic static void CopyMediaFile(
	string siteName,
	int libraryID,
	string origPath,
	string newPath,
	bool synchronization = false,
	int userId = 0
)
Parameters
- siteName
 - Type: SystemString
Site name - libraryID
 - Type: SystemInt32
Library ID - origPath
 - Type: SystemString
Old file path within the library folder - newPath
 - Type: SystemString
New file path within the library folder - synchronization (Optional)
 - Type: SystemBoolean
Indicates if method is running by web farms synchronization - userId (Optional)
 - Type: SystemInt32
ID of the user performing copy action 
See Also