On Nov 26, 3:01 pm, meltingmind
<lucaska...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hello. I''m using x_send_file plugin with Apache on a production
> server, but I don''t seem to have the right path to the file I want
to
> download. I searched this forum for clues, but I can''t find the
> answer.
>
> This doesn''t seem to work, nor anything else I''ve
tried... can anyone
> help?
>
>
x_send_file(''#{RAILS_ROOT}/public/downloads/file_name.mov'')
>
I don''t know much about x_send_file, but you''re using single
quotes so
the #{} isn''t interpolated
Fred> I keep getting "Cannot read file" error. If I use double quotes
on
> the file path, I get a 1 byte file download with the file name... the
> download file definitely exists and is in the right location as I can
> use the built in send_file to download the file perfectly. But
> because these video files are large, I don''t want to use RoR to
> download them.
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---