File download with send_file

#1
Hello,

I'm using rails send_file function to download files but it doesn't work with big files because of the max response body limit. Is there anyway around that? I need to be able to download files from arbitrary locations because my docroot folder is on a read only file system. BTW the files can be bigger than 1GB so raising the response body limit wont work. :)

Any ideas?

Cheers,
henke
 
Last edited:
#3
Thanks for the quick response!

I now use internal redirect but instead of static context I set upp an symlink within the public root which points to a download area. This works perfectly but maybe not as security safe as the static context you mentioned. I will check that out also.

Thanks!
 
Top