- 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
| Parameter | Details |
|---|---|
(Required) | The file to be uploaded. |
(Optional) | A description of the file can optionally be provided. |
(Required) | The output format for this operation. The default value is Values: |
(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:
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
{
"date": "date-string",
"fileName": "videoTitle.ts",
"committed": <true | false>,
"fileId": "<file-id-string>"
}JSON Response example
{
"date": 1759416304952,
"fileName": "videoTitle.ts",
"committed": true,
"fileId": "iae664a9a-0b13-449c-802f-6f00f8116db0"
}