Click or drag to resize
FileImportImportFiles Method
Imports the set of files.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax
C#
public static void ImportFiles(
	string siteName,
	string targetAliasPath,
	string cultureCode,
	string[] fileList,
	string[] relativePathList,
	int userId,
	bool deleteImportedFile
)

Parameters

siteName
Type: SystemString
Site name
targetAliasPath
Type: SystemString
Target alias path
cultureCode
Type: SystemString
Culture code
fileList
Type: SystemString
File list
relativePathList
Type: SystemString
List of files paths that are relative to file import folder. Used by file import to create tree structure that represents sub-tree of file import folder. If this feature is not necessary use null value
userId
Type: SystemInt32
User ID
deleteImportedFile
Type: SystemBoolean
Indicates if physical file should be deleted after import
Remarks
Path values are file system paths (with \ as the path separator)
See Also