ArcGIS Pro 2.7 API Reference Guide
Upload(UploadDefinition) Method

ArcGIS.Desktop.Core Namespace > EsriHttpClient Class > Upload Method : Upload(UploadDefinition) Method
The upload definition
Uploads an item to the specified Uri identifying a portal/server as a synchronous operation.
Syntax

Parameters

uploadDefinition
The upload definition

Return Value

System.Tuple A binary tuple consisting of a bool and an ItemID. The bool indicates whether the method succeeded or failed.
Remarks
The following items are currently supported:
ArcGIS Geoprocessing package (gpk)
ArcGIS Locator package (gcpk)
ArcGIS Map package (mpk)
ArcGIS Mobile Basemap package (bpk)
ArcGIS Mobile Map package (mmpk)
ArcGIS Server Globe service
ArcGIS Server Geometry service
ArcGIS Server Geoprocessing service
ArcGIS Server Geodata service
ArcGIS Server Network analysis service
ArcGIS Task file (esriTasks)
Arcmap document (mxd)
CSV: A text file of data values separated by commas or other delimiters (csv)
Feature service
Geocoding service
Image service
KML file
Layer file (lyr) or (lyrx)
Layer package (lpk)
Map service
Microsoft Excel Document (.xls, .xlsx)
Tile package (tpk)
Compact Tile package (tpkx)
Vector Tile package (vtpk)
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

EsriHttpClient Class
EsriHttpClient Members
Overload List