views:

24

answers:

0

Hi everybody,

I have a web application which has some multimedia files stored in a user protected area. To make these files available to logged in customers, I consider using the x-sendfile plugin.

x_send_file(path, :type => 'application/pdf')

It is just strange that every time I run this function an empty file gets sent to the browser. I checked the path which is correct (app fails if I change it to a non-existent file). Actually if I use the Rails internal send_file method, the same error occurs...

Any help is appreciated!

Markus