ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Core Namespace / EsriHttpClient Class / UploadAsync Method
The upload definition

In This Topic
    UploadAsync Method
    In This Topic
    Uploads an item to the specified Uri in the upload definition asynchronously.
    Syntax

    Parameters

    uploadDefinition
    The upload definition

    Return Value

    Task{Tuple{bool, string}}. 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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also