2017년 1월 13일 금요일

upload a resumable video on youtube


in order to upload a video on youtube I use a web component  with a POST request that implement a resumable upload (see this link to detail https://developers.google.com/youtube/v3/guides/using_resumable_upload_protocol##Start_Resumable_Session)





 the response include a Location HTTP header like this:

HTTP/1.1 200 OK
Location: https://www.googleapis.com/upload/youtube/v3/videos?uploadType=resumable&upload_id=xa298sd_f&part=snippet,status,contentDetails
Content-Length: 0

but if I use this snippet

I've response code =200, but there isn't a way to take the Location parameter, because it is in the header of answer!
So the question is: how I can take Location field from the header using only web components?

--
see my answer in your other thread https://groups.google.com/d/msg/mitappinventortest/73_Yvbthu08/TJVHILONDAAJ
sorry for not having a better answer...

-- 

댓글 없음:

댓글 쓰기