[Mongrel] problem in downloading large file with apache+mongrel

Luis Lavena luislavena at gmail.com
Wed Sep 22 11:05:21 EDT 2010


On Wed, Sep 22, 2010 at 12:00 PM, Amit Tomar <lists at ruby-forum.com> wrote:
>
> luis i change my code as you said
>
> filename =  "#{@stream.location}"
> response.headers['Content-Type'] = "application/force-download"
>  response.headers['Content-Disposition'] = "attachment;
> filename=\"#{File.basename(filename)}\""
> response.headers["X-Sendfile"] = filename
> response.headers['Content-length'] = File.size(filename)
> render :nothing => true
>
> this is how it is processed...
>

This? How? can you provide answers to my previous questions about
process memory usage? Please?

-- 
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry


More information about the Mongrel-users mailing list