Object changes inside method

I must admit I'm stumped. What I would do is place a "puts
incoming_file.inspect" as the first statement in the uploaded_file
method to make sure you really have a File object. If you figure this
out please post a solution.

By the way - how did you get your code example, with syntax
highlighting and all, into html format? That looks nice.