Upload Part

URL:
https://<root>/<serviceName>/<serviceType>/uploads/<itemID>/uploadPart
Methods:
POST
Required Capability:
Uploads
Version Introduced:
10.0

Description

This operation uploads a part to an item previously registered using the register operation. Because this request uploads a file, it must be a multipart request pursuant to IETF RFC1867.

All uploaded items are subject to the deletion rules set on the upload directory by the administrator of the server. Additionally, the administrator can explicitly delete an item as each uploaded item appears in the list of uploaded items in the Site Directory.

Arguments can be provided to the uploadPart operation as query parameters. The parameter details are listed in the table below.

Request parameters

ParameterDetails

f

Description: The response format. The default response format is html.

Values: html | json

partId

Description: A unique number representing the part. For example, if a file is partitioned into 10 parts, the part number representing the fifth part of the file will be 5.

Syntax: partId=<partId>

Example: partId=5

file

Description: The file to be uploaded.

Example usage

Example: Upload a part file

Use dark colors for code blocksCopy
1
https://<serverName>.<domain>.com/arcgis/rest/services/911CallsHotspot/GPServer/uploads/icb0817bf-53c7-45d9-9487-3b87b6cba253/uploadPart

The input parameter file to this operation is a file.

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
{
    "success": <true|false>,
    "item": {
        "itemID": "<itemID>",
        "itemName": "<itemName>",
        "description": "<description>",
        "date": <date>,
        "committed": <true|false>
    }
}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
{
    "success": true,
    "item": {
        "itemID": "i912f0648-a455-4d08-ae95-44eb5b82de2e",
        "itemName": "lakeImagery",
        "description": "Lake Tahoe",
        "date": 1246060800000,
        "committed": false
    }
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.