Skip to content
URL:
https://<root>/uploads/upload
Methods:
POST
Version Introduced:
12.0

Description

The upload operation uploads a video file to ArcGIS Video Server. Supported file formats include the following:

  • .ts
  • .mp4
  • .mpg
  • .mpeg
  • .avi
  • .mov
  • .txt
  • .csv
  • .gpx

Request parameters

ParameterDetails

file

(Required)

The file to be uploaded.

description

(Optional)

A description of the file can optionally be provided.

f

(Required)

The output format for this operation. The default value is html.

Values: html | json | pjson

token

(Required)

Users interacting programmatically with this endpoint must generate a token that must be included as a request parameter. A token can be obtained using the Generate Token operation.

Example usage

The following is a sample POST request for the upload operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
POST /arcgis/rest/uploads/upload HTTP/1.1
Host: organization.example.com:21443
Content-Type: multipart/form-data; boundary=----boundary
Content-Length: []

------boundary
Content-Disposition: form-data; name="file"; filename=""
Content-Type: application/octet-stream

sampleVideo.ts
------boundary
Content-Disposition: form-data; name="description"


------boundary
Content-Disposition: form-data; name="f"

pjson
------boundary
Content-Disposition: form-data; name="token"

<token>
------boundary--

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
{
    "date": "date-string",
    "fileName": "videoTitle.ts",
    "committed": <true | false>,
    "fileId": "<file-id-string>"
}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
{
    "date": 1759416304952,
    "fileName": "videoTitle.ts",
    "committed": true,
    "fileId": "iae664a9a-0b13-449c-802f-6f00f8116db0"
}

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