Skip To Content

Upload Part

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 1: Upload a part file:

https://server.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


            {
    "success": <true|false>,
    "item": {
        "itemID": "<itemID>",
        "itemName": "<itemName>",
        "description": "<description>",
        "date": <date>,
        "committed": <true|false>
    }
}

JSON Response example


            {
    "success": true,
    "item": {
        "itemID": "i912f0648-a455-4d08-ae95-44eb5b82de2e",
        "itemName": "lakeImagery",
        "description": "Lake Tahoe",
        "date": 1246060800000,
        "committed": false
    }
}