# WIN23OLE and file\_field

**URL:** <https://www.ruby-forum.com/t/win23ole-and-file-field/91740>\
**Category:** Rails\
**Created:** [April 11, 2007, 11:45pm UTC](https://www.ruby-forum.com/t/win23ole-and-file-field/91740 "2007-04-11T23:45:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimache](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c67d28/32.png) [@jimache](https://www.ruby-forum.com/u/jimache)\
**Post date:** [April 11, 2007, 11:45pm UTC](https://www.ruby-forum.com/t/win23ole-and-file-field/91740/1 "2007-04-11T23:45:30Z")

</div>

Hi every1,

I am using WIN23OLE to open and excel file, manipulate data and then  
write the results in a database. Everything works find, or at least i  
thought so.  
I used the file’s path to open the excel file and worked

wb = xls.Workbooks.open(“c:\test.xls”)

… but now i am trying to accomplish the same thing using file\_field in  
a .rhtml page; i tried

wb = xls.Workbooks.open(params[:datafile]) and it doesn’t work.

Can someone please help. Any input is greatly appreciated.

Thank you,
