Getting filename of upload

Greetings, I have a method that processes an uploaded file, manages content_type, and a few other things. How would I go about getting the filename of the uploaded file WITHOUT using javascript on the client side to send it through the form???

LiveHTTPHeaders sends the filename with 'Content_Disposition'. Looking through the API of CGI.rb, I still could not find an answer on how to capture the original filename from the client.

Thanks in advance. David

i believe there is an "original_filename" object that you can call on your file object.

file_name = my_file.original_filename

hope that helps.

Thanks-that is precisely what I was looking for. Next time, I will comb the docs more carefully.

THanks again, Josh.

David