FC> On Mar 11, 12:27 am, Ralph S. [email protected] wrote:
Is there a document somewhere that describers how I would implement, in
Rails, a “resume download”?
I have a large video I want people to download (if they want to).
My partner has a bad Internet connection and it crashed several times
and he wanted to resume but the download wouldn’t.
How do I set things up so that a download is restartable?
FC> You need to support partial gets: if the get request contains (for
FC> example) Range: 500000- then you only send bytes from that offset.
FC> If this is just a static asset then it’s nothing to do with rails:
FC> need to make sure that your web server’s configuration allow this.
FC> it’s something being sent via send_file etc. then i’d hope that
FC> would handle this for you
Thank you. Again, this is way over my head.
The line of HAML I have is:
= link_to ‘(MP4)’, ‘/videolib/Workstation-Suspend-Put-001.mp4’,
‘class’ => video_type_link_to
The user clicks on “(MP4)” and the download automagically begins.
Does the link_to initiate a send_file? Should I be doing a send_file
These large-ish (100MB each) videos are fairly static … maybe being
updated once a week or less.