Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Multipart upload

I am trying to do a multi part upload using the two step process. From first step i am getting a upload URL which comes with resumable appended with it. Now when i upload a part of the file. I am trying to send 0-2/223456444 bytes. For which am expecting to get back a 201 response.
But every time i try, i am getting a 200 OK response. And because of which i am not able to upload my rest of the file.

Any clues on what i could be doing wrong?

3 Community Answers


0 rated :

Part to note is : i am not using any browser to do this upload. I am doing it using C# code. So we have been trying to upload small files around 20 to 100 mb and it looks fine. But when any file goes above 100 or 200 our WebClient.UploadFile method fails. Either we get a System Out of Memory Exception. Or else we get a time out. So we tried to do this using Chunks mechanism. But when sending the first chunk. Am expecting the api to give me back a 201 response. But every time Api returns back a 200 which means file has got uploaded successfully and then the video goes into processing state. I am not able to find why would API give me back 200 when i send a X-Content-Range, X-Session-ID and everything else it needs. Please help. This account of mine is a free account. But our organisation also has a Paid account. Am trying to develop this using my free account. I am not sure if this is some paid feature or something. Please help.


0 rated :

When i was trying to use Upload File i was getting 200. Now when i tried using upload data. I am getting a HTTP/1.1 416 Requested Range Not Satisfiable.
Below is the request and response from fiddler.
Request :
Content-Disposition: attachment; filename="t3em0204_measuring_bp_pulse.mp4"
X-Content-Range: bytes 0-2097152/142604245
X-Session-ID: DFCeV2Mgy9HKv8YbnAQS3VZ7bce9LU05uCiGvKM4
Content-Type: application/octet-stream
Content-Length: 2097152

ftypmp42 mp42avc1 P5moov lmvhd Y6f Y6k X J @

*** FIDDLER: RawDisplay truncated at 128 characters. Right-click to disable truncation. ***
HTTP/1.1 416 Requested Range Not Satisfiable
Server: nginx
Date: Fri, 19 Aug 2016 15:10:33 GMT
Content-Type: text/html
Content-Length: 206
Access-Control-Allow-Origin: *

<head><title>416 Requested Range Not Satisfiable</title></head>
<body bgcolor="white">
<center><h1>416 Requested Range Not Satisfiable</h1></center>


JW Player Support Agent  
0 rated :

Can you send me the file you are trying to upload? If it’s over 25 MB, which I assume it is, you won’t be able to just attach it to the email so can you either share a Dropbox link or another URL to where I can download it?

I’ll try uploading it via the API using PHP and Python, since those are the only two languages we support using our API with. It’s not to say it won’t work in C# but we’re unable to assist in the language since we are not too well-versed in it. Testing via PHP and Python will allow us to make sure there are no current issues regarding uploading content via the /videos/create endpoint though.

Thank you.

This question has received the maximum number of answers.