[Rails] Re: Download Movie through link

2009-02-12 Thread Deepak Mahajan
MaD wrote: if i understand correctly you can click that link, choose the option 'save as', download it to you hd and watch it. but you if you click the link and choose 'open', your video player opens but doesn't show any content. correct? if so i don't think it's a problem with your rails

[Rails] Re: Download Movie through link

2009-02-12 Thread MaD
alright, then let's take a look at your code... how does it work? do you store your files in a folder inside your public-directory and filename points to that location? or do you store your files inside your database? what exactly is Movie.file and Movie.filename? the following line throws me

[Rails] Re: Download Movie through link

2009-02-12 Thread Hitesh Rawal
Deepak Mahajan wrote: MaD wrote: if i understand correctly you can click that link, choose the option 'save as', download it to you hd and watch it. but you if you click the link and choose 'open', your video player opens but doesn't show any content. correct? if so i don't think it's a

[Rails] Re: Download Movie through link

2009-02-12 Thread Deepak Mahajan
Hitesh Rawal wrote: Deepak Mahajan wrote: MaD wrote: if i understand correctly you can click that link, choose the option 'save as', download it to you hd and watch it. but you if you click the link and choose 'open', your video player opens but doesn't show any content. correct? if so i

[Rails] Re: Download Movie through link

2009-02-12 Thread Jeremy Olliver
I believe that the usual thing when sending files is to use the webserver's filestreaming rather than rendering the file as text. Try something like send_file @movie.file_path, :disposition = :attachment The disposition attachment option is actually set by default, but it will provide the

[Rails] Re: Download Movie through link

2009-02-11 Thread MaD
if i understand correctly you can click that link, choose the option 'save as', download it to you hd and watch it. but you if you click the link and choose 'open', your video player opens but doesn't show any content. correct? if so i don't think it's a problem with your rails app, but with