成功上传到s3后,我正在使用uploadSuccess.endpoint网址启动一些brightcove api调用。我需要根据这些api调用的结果将消息中继给用户,但我看不到如何将处理添加到该端点url的输出。 callbacks.onComplete似乎没有看到此输出。是否有可用于处理输出的事件?这是成功上传s3后来自FineUploader的uploadSuccess的POST:
POST /cms/media/ajax/processS3Response.do HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Content-Length: 194
Origin: http://localhost:8080
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Accept: application/json
Cache-Control: no-cache
X-Requested-With: XMLHttpRequest
Referer: http://localhost:8080/cms/media/edit.do?id=71535
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8
key=dev%2F2016%2F10%2Ftest-small-71535-orig.mp4&uuid=1b1b7e31-2966-4840-a17d-8ddb3d347a8c&name=test-small.mp4&bucket=my-bucket&etag=%22f515fa3e2b87d2959f605d6c1ef6043f%22&mediaid=71535
这是我从服务器得到的回复:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Content-Length: 944
Date: Mon, 31 Oct 2016 21:43:48 GMT
{"bucket":"apollo-videouploads","etag":"\"f515fa3e2b87d2959f605d6c1ef6043f\"","bc_responses":{"cms_response":{"digital_master_id":null,"has_digital_master":false,"reference_id":"71535","link":null,"created_at":"2016-10-31T21:43:47.279Z","description":"jim test e","cue_points":[],"duration":null,"geo":null,"original_filename":null,"updated_at":"2016-10-31T21:43:47.295Z","delivery_type":"static_origin","text_tracks":[],"id":"5191685049001","state":"ACTIVE","published_at":"2016-10-31T21:43:47.279Z","ad_keys":null,"images":{},"custom_fields":{"ownerbrand":"Macworld","publishdate":"2016-10-31 00:00:00"},"long_description":"jim test e","sharing":null,"tags":[],"schedule":null,"economics":"AD_SUPPORTED","account_id":"2717258955001","name":"jim test e","complete":false,"folder_id":null},"di_response":{"id":"f3473660-f7df-4051-a5f1-81c3bf93f996"}},"uuid":"1b1b7e31-2966-4840-a17d-8ddb3d347a8c","key":"dev/2016/10/test-small-71535-orig.mp4"}