Problem with multiple file attachment

hi,

actually i have done single file attachment in ruby on rails, now i
want to do multiple attachment, but the problem is when i am trying to
display the second file name from the params for the testing purpose, i
got the error, please can anyone correct the error.

in view:

<%= file_field("picture", "file") %> <%= file_field("test", "file") %>

in controller:

if request.post?
@picture=params[:picture][:file]
@filename = @picture.original_filename
@test=params[:test][:file]
render_text @filename1 = @picture1.original_filename
end

my Error is:

undefined method `original_filename’ for “”:String

sorry this is my controller

if request.post?
@picture=params[:picture][:file]
@filename = @picture.original_filename
@test=params[:test][:file]
render_text @filename1 = @test.original_filename
end