Hi! Yeah Daarius, thats a good solution, but, if you want to have the REAL extension of the uploaded file, you could do something like this:
ereg(".(.)+$", $upload_filename, $ext);
and, in $ext[1] you've the REAL extension of the file.
Anyway, do it as you wish =)
inKel
PS: excuse my english