Hi all,
I am using send_file("/path/to/my/file")to send a file from the
server to a client. The file is not empty but when displayed on the
client, it is totally blank. In windows system, it’s working properly,
the problem is only with a linux server
surjya hazarika wrote:
Hi all,
I am using send_file("/path/to/my/file")to send a file from the
server to a client. The file is not empty but when displayed on the
client, it is totally blank. In windows system, it’s working properly,
the problem is only with a linux server
If the file is the right size, are you setting its mime type when you
send it?
e.g.,
send_file(User.photo_file_name_for(@params[:id]),
{:disposition => 'inline', :type => 'image/jpeg'})
–Al Evans