Skip to main content

Single Threaded Upload

Service Address

http://upload-az-cn.danghongyun.com/multipart/upload

Request Method

POST

Request Parameters

ParameterDescriptionTypeRequired
tokenThe access tokenStringRequired
fileThe file dataMultipartRequired
isEncryptEncrypt or not, 0 no encryption, 1 encryption, default 0. Note: Non encoded videos cannot be encrypted for uploading, i.e. if isTranscoder is 0, isEncrypt cannot be 1StringOptional
categoryIdCategory IDStringOptional
videoTypeIndicates whether the video is a regular or VR video, 0:normal video, 1:VR, default 0. IntegerOptional
isTranscoderIndicates whether the video requires transcoding. 1:the video is encoded after uploading, 0:the video is not encoded after it is uploaded. default 1StringOptional
transcodeTemplateGroupIdThe id of the transcoding template group. If the value is empty, the default transcoding template group will be used for transcoding.IntegerOptional
capturePointsThe screenshot time of the thumbnail/cover image after successful video upload (in seconds), If the user sets a time point for taking screenshots, the maximum number of screenshots is 8. If the user sets less than 8 time points, the actual number of screenshots will be taken. If the user sets more than 8 time points, only the first 8 are valid. Multiple time points are separated by commas, eg: "5,10,15,20,25,30,35,40".StringOptional
isExtractFrameImmediately draw frames after successfully uploading the video, 0 no, 1 yesIntegerOptional
frameIntervalThe time interval for frame extraction (in seconds), if a frame is extracted, this parameter value needs to be set.IntegerOptional
tagVideo tags stored after uploading videos for retrievalStringOptional

Response Example

{
"code":0,
"message":"MulitpartUploadController upload success.",
"result":
[
{
"videoId":"ee2435ae735b4c31b58b0e56d507f440",
"fileName":"someone@arcvideo.com_1461205718234_FrozenFrame001.ts",
"thumbnaill":"http://8zrgbat3.web4.danghongyun.com/thumb%2F2016%2F04%2F21%2F121_someone%40arcvideo.com_1461205718234_FrozenFrame001.jpg",
"cover":"http://8zrgbat3.web4.danghongyun.com/cover%2F2016%2F04%2F21%2F121_someone%40arcvideo.com_1461205718234_FrozenFrame001.jpg",
"title":"FrozenFrame001",
"size":7539,
"userId":121,
"category":null,
"status":0,
"isEncrypt":null,
"categoryId":1
}
],
"count":1,
"success":true
}

Response Fields

FieldDescription
countCount
videoIdVideo id
fileNameThe uploaded file name
thumbnaillThe video thumbnail
coverThe video cover
titleVideo title
sizeThe video file size
userIdUse id
categoryVideo category
statusThe transcoding status of the video
isEncryptVideo encryption status
categoryIdVideo category id

Error Codes

CodeMessage
0success
10000exception
10011Insufficient trial user space
10012parameter error