i dont understand. you already have the file type there. do you mean when you initially insert the file into the database?
if you do mean when you initially insert the file, check out:
getimagesize()
that returns the dimensions along with the file type of the image.