2

I'm trying to stream a file from a remote URL directly to user without downloading it in my server.

I tried using the code someone recommended here:

Stream file from remote url to Django view response

But i can't find a way to add resume support. I tried getting HTTP_RANGE and add a range header to requests.get but it doesn't work.

Is there any way to add resume support or even any other way to serve file from remote URL with resume support?

Navid Zarepak
  • 4,148
  • 1
  • 12
  • 26
  • for requests, I use Range and not HTTP_RANGE. something like: header = {'Range': 'bytes=%d-' % continue_position} – jnvilo May 26 '17 at 10:53
  • no i meant getting the HTTP_RANGE from request.META. The range is set correctly like you said but it still doesn't work. – Navid Zarepak May 26 '17 at 11:13

0 Answers0