ArcGIS Pro 2.7 API Reference Guide
FolderName Property (UploadDefinition)

ArcGIS.Desktop.Core Namespace > UploadDefinition Class : FolderName Property
Gets and sets the folder name of the portal folder into which the item will be uploaded
Syntax
public string FolderName {get; set;}
Public Property FolderName As String
Remarks
You can either pass FolderID or FolderName but not both. Passing both the properties will result in an exception being thrown on the upload
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

UploadDefinition Class
UploadDefinition Members