FC> On Mar 11, 12:27 am, Ralph Shnelvar <[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: you
FC> need to make sure that your web server's configuration allow this. If
FC> it's something being sent via send_file etc. then i'd hope that rails
FC> would handle this for you

Frederick,

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 
explicitly?  How?

These large-ish (100MB each) videos are fairly static ... maybe being updated 
once a week or less.

Ralph

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to