Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

Direct Download API: video file response

Answered

Comments

3 comments

  • Andrey Terentyev
    • Network Optix team

    Hello Wisanu,

     

    The Server transfers requested video file on the fly, so to say, right away from the archive until the end of the requested period, without calculating actual size to be downloaded. The Server uses Transfer-Encoding: chunked in this case. That's why there is no 'Content-Length' header, since it is optional by standard and is omitted.

    I'm not sure I understood what you mean by "validation".

    Could you explain in more details what do you want to achieve?

    0
  • Permanently deleted user

    Thanks for replying,

    I'll try to explain what I experienced.

    In my local case, I tested it during downloading video, I closed a server half way.

    What I expect

    Response code is 5xx as server is down or some other errors to inform that downloading is interrupted

    What I get

    Response code is 200, no error.

    Anyway, the video has been cut half way

     

    P.S. I know my case is extream as a server down is very critical, but still possible.

    Let me know if I misunderstood somethings, thanks.

    0
  • Permanently deleted user

    The server sends a 200 response header before sending the actual data, so if you stop the server half-way, it is too late to change the response.

    Also, if the server is stopped abruptly - the process is dead and it cannot send anything.

    We will not be able to change the behavior here

    0

Please sign in to leave a comment.