Showing Images from a file store


#1

Hi all.
I am wrting a small content management tool for my company and was
trying to display some images from our file store shown below.

The app was displaying the image when it is under the \public\images directory. Is there anything special we need to do to get a file from outside the root of the application?

Any help appreciated.

Thanks
Silvy Mathews


#2

send_file ‘/path/to.jpeg’, :type => ‘image/jpeg’, :disposition =>
‘inline’