UiPath Documentation
activities
latest
false
Productivity activities

UploadFiles

Uploads the specified files to OneDrive or SharePoint.

Uploads the specified files to OneDrive or SharePoint.

Namespace: UiPath.MicrosoftOffice365.Activities.Api

Assembly: UiPath.MicrosoftOffice365.Activities.Api (in UiPath.MicrosoftOffice365.Activities.Api.dll)

Overloads​

OverloadDescription
UploadFiles(IEnumerable<String>, IFolder, ConflictBehavior, DataTable)Uploads the files from the specified local paths to OneDrive or SharePoint.
UploadFiles(IEnumerable<IResource>, IFolder, ConflictBehavior, DataTable)Uploads the specified files to OneDrive or SharePoint.

UploadFiles(IEnumerable<String>, IFolder, ConflictBehavior, DataTable)​

Uploads the files from the specified local paths to OneDrive or SharePoint.

IReadOnlyCollection<IFile> UploadFiles(
	IEnumerable<String> paths,
	IFolder destination = null,
	ConflictBehavior conflictBehavior = ConflictBehavior.Replace,
	DataTable metadata = null
)
IReadOnlyCollection<IFile> UploadFiles(
	IEnumerable<String> paths,
	IFolder destination = null,
	ConflictBehavior conflictBehavior = ConflictBehavior.Replace,
	DataTable metadata = null
)

paths IEnumerable<String> : The local paths of the files to upload.

destination IFolder (Optional) : The destination folder where to upload the files. If not specified, it defaults to OneDrive root folder.

conflictBehavior ConflictBehavior (Optional) : Indicates the conflict resolution behavior in case files with the same name already exist.

metadata DataTable (Optional) : The metadata to associate with the uploaded files. It works only for files stored in a SharePoint document library. It should contain two columns, the first one representing the display name of the field (String) and the second its value (Object).

UploadFiles(IEnumerable<IResource>, IFolder, ConflictBehavior, DataTable)​

Uploads the specified files to OneDrive or SharePoint.

IReadOnlyCollection<IFile> UploadFiles(
	IEnumerable<IResource> files,
	IFolder destination = null,
	ConflictBehavior conflictBehavior = ConflictBehavior.Replace,
	DataTable metadata = null
)
IReadOnlyCollection<IFile> UploadFiles(
	IEnumerable<IResource> files,
	IFolder destination = null,
	ConflictBehavior conflictBehavior = ConflictBehavior.Replace,
	DataTable metadata = null
)

files IEnumerable<IResource> : The files to upload.

destination IFolder (Optional) : The destination folder where to upload the files. If not specified, it defaults to OneDrive root folder.

conflictBehavior ConflictBehavior (Optional) : Indicates the conflict resolution behavior in case files with the same name already exist.

metadata DataTable (Optional) : The metadata to associate with the uploaded files. It works only for files stored in a SharePoint document library. It should contain two columns, the first one representing the display name of the field (String) and the second its value (Object).

Return value​

IReadOnlyCollection<IFile> - The list of uploaded files.

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated