Activities
latest
false
Productivity Activities
Last updated Jun 3, 2024

UploadFiles

Uploads files to Google Drive.

Namespace: UiPath.Gsuite.Activities.API

Assembly: UiPath.Gsuite.Activities.API (in UiPath.Gsuite.Activities.API.dll)

Overloads

OverloadDescription
UploadFiles(IEnumerable<String>, IFolder, Boolean, ConflictBehavior, Boolean)Uploads local files to Google Drive
UploadFiles(IEnumerable<IResource>, IFolder, Boolean, ConflictBehavior, Boolean)Uploads files to Google Drive

UploadFiles(IEnumerable<String>, IFolder, Boolean, ConflictBehavior, Boolean)

Uploads local files to Google Drive.
public IReadOnlyCollection<IFile> UploadFiles(
	IEnumerable<string> paths,
	IFolder destination,
	bool convertToGoogleTypes = false,
	ConflictBehavior conflictBehavior = ConflictBehavior.AddSeparate,
	bool uploadAsIsIfConvertFails = false
)public IReadOnlyCollection<IFile> UploadFiles(
	IEnumerable<string> paths,
	IFolder destination,
	bool convertToGoogleTypes = false,
	ConflictBehavior conflictBehavior = ConflictBehavior.AddSeparate,
	bool uploadAsIsIfConvertFails = false
)
paths IEnumerable<String>
The paths of the files to upload to Google Drive.
destination IFolder
The destination folder where to upload the file. If not specified, it defaults to Google Drive root folder.
convertToGoogleTypes Boolean (Optional)
Indicates whether to convert the uploaded file into a Google Workspace file type, such as a Google Doc or Sheet.
conflictBehavior ConflictBehavior (Optional)
What is the expected behavior when a file with the same name already exists in the destination folder.
uploadAsIsIfConvertFails Boolean (Optional)
Indicates if the file will be uploaded when the conversion to a Google Workspace file type fails.

UploadFiles(IEnumerable<IResource>, IFolder, Boolean, ConflictBehavior, Boolean)

Uploads files to Google Drive
public IReadOnlyCollection<IFile> UploadFiles(
	IEnumerable<IResource> files,
	IFolder destination,
	bool convertToGoogleTypes = false,
	ConflictBehavior conflictBehavior = ConflictBehavior.AddSeparate,
	bool uploadAsIsIfConvertFails = false
)public IReadOnlyCollection<IFile> UploadFiles(
	IEnumerable<IResource> files,
	IFolder destination,
	bool convertToGoogleTypes = false,
	ConflictBehavior conflictBehavior = ConflictBehavior.AddSeparate,
	bool uploadAsIsIfConvertFails = false
)
files IEnumerable<IResource>
The files to upload to Google Drive.
destination IFolder
The destination folder where to upload the file. If not specified, it defaults to Google Drive root folder

.

convertToGoogleTypes Boolean (Optional)
Indicates whether to convert the uploaded file into a Google Workspace file type, such as a Google Doc or Sheet.
conflictBehavior ConflictBehavior (Optional)
What is the expected behavior when a file with the same name already exists in the destination folder.
uploadAsIsIfConvertFails Boolean (Optional)
Indicates if the file will be uploaded when the conversion to a Google Workspace file type fails.

Return value

IReadOnlyCollection<IFile> - The list of uploaded files.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.