FILE_FIELD issue

My rhtml looks like this (extract)

  <tr><td>File</td>       <td><%= file_field(:document, 'file') %></td>   </tr>   <tr><td>Description:</td>       <td><%= text_area(:document, 'description', {:rows=>8, :cols=>40}) %></td>   </tr>   <tr><td>Category:</td>       <td><%= select(:document, 'folder_id', @folders) %></td>   </tr>

Params shows up in log as follows:

Parameters: {"commit"=>"Upload", "action"=>"create", "document"=>{"folder_id"=>"1", "description"=>"some doc"}, "controller"=>"documents"}

Where did the 'file' params vanish? How come document[description] and document[folder_id] are picked up but not document[file]?

Rajesh

Hi folks, any ideas on this one? Regards, Rajesh