POST /files/uploads
Response:
Returns an upload "session" consisting of the action url to which to make a multipart form-post with the file data to be uploaded as well as a set of form post parameters that must be included as part of the request.
curl -X POST -H "Authorization: Bearer um9VmyJKTPGFqpkL_THjGE5rkXqfURDYqQ8MTBVidG3PtwkfABIdx6s_z9WlFl4_j" "https://api.xvid.com/v1/files/uploads/?object_key=uploads%2Ftest.mp4&pipeline_id=53a1ac4914eaa8ffa4fce91b"
{
"upload": {
"form_post_params": {
"name": "test.mp4",
"success_action_status": "201",
"filename": "",
"chunk": "0",
"chunks": "1",
"policy": "eyJleHBpcmF0aW9uIjoiMjAxNC0wNi0yMFQwOTo0NjowNi4yNzlaIiwiY29uZGl0aW9ucyI6W3siYnVja2V0IjoieHZpZC1tZWRpYWNvZGVyIn0sWyJzdGFydHMtd2l0aCIsIiRuYW1lIiwiIl0sWyJzdGFydHMtd2l0aCIsIiRrZXkiLCI1M2ExYWM0OTE0ZWFhOGZmYTRmY2U5MWIvIl0sWyJzdGFydHMtd2l0aCIsIiRmaWxlbmFtZSIsIiJdLHsiYWNsIjoicHJpdmF0ZSJ9XX0=",
"signature": "y7eAlMzKsVyNHkKEfN1/DnVTh34=",
"AWSAccessKeyId": "AKIAINU6WW5PT7GRJLVA",
"key": "tmp/53a1ac4914eaa8ffa4fce91b/uploads/test.mp4",
"acl": "private"
},
"status": "UPLOADING",
"object_key": "uploads/test.mp4",
"nb_chunks": 0,
"type": "S3",
"form_post_url": "https://s3-eu-west-1.amazonaws.com/prd-xmc-xvid-s3-eu-west-1/",
"pipeline": {"id": "53a1ac4914eaa8ffa4fce91b"},
"file" : {"id": "53a1ac4914eaa8ffa4fce38c"},
"id": "53a1ac4914eaa8ffa4fce38c"
}
} |