04-30-2008, 02:07 AM
|
#7 (permalink)
|
|
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
|
Quote:
Originally Posted by ETbyrne
How do you get the file extention from $_FILES? $that = $_FILES['input']; doesn't give me anything.
|
PHP Code:
$szExt = end(explode(".", $_FILES['file']['name']));
// or
$szExt = pathinfo($_FILES['file']['name'], PATHINFO_EXTENSION);
|
|
|
|