the way i'm handling file uploads is no good, but i'm not sure what
the best way to go about it is. right now my approach is to use
FileUtils.mv to move the uploaded file to the directory i want it in.
this approach doesn't work well because sometimes the uploaded file is
just an IO object instead of a temporary file (apparently small files
aren't put into temp files according to the CGI documentation).
anyway, how should i be doing this? i like just using 'mv' to move
the files... is there a way i can force cgi to store everythng as a
temporary file? i also tried using the IO#read method to read the
uploaded files data into a new file, but that didn't seem to get the
MIME-type and stuff in there... what should i do?