filemodel.extension = File.extname("/some/path/myfile.xls") # output
is ".xls"
Do you mean instead that you would like to store an xls file? If so
check out acts_as_attachment, attachment_fu or file_column plugins.
Ben
On May 26, 3:39 am, railsrao
<energysriniv...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi every one
> I need help , i have a application ofhttp://www.projectlaika.org/
> i need to store a xls file extension please provide how to do make a
> list of steps if possible and i hope to get reply as soon as possible.
> Thanks
> team