View Single Post
Old 02-16-2005, 10:35 AM   #7 (permalink)
jpwjpw
Registered User
 
Join Date: Feb 2005
Posts: 1
jpwjpw is on a distinguished road
try this:

$filetype = explode("/",$_FILES['filename']['type']);

This returns the file format like 'image/jpeg' in an array split by the /(i.e.

$filetype[0] = image
$filetype[1] = jpeg
jpwjpw is offline   Reply With Quote