File upload artifacts

I'm testing out Rails file upload (using Recipe 57 if you have the
Recipe book) but each time I do an upload it leaves a temp file with a
name like CGI4075.0 in my rails root directory. How do I get rid of
these other than running a cron job?