UiPath Documentation
activities
latest
false
Productivity activities

UploadFiles

Uploads files to Google Drive.

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, 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, 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?

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