View Single Post
02-04-2008, 06:43 PM
Join Date: Apr 2007
You state that people shouldn't rely on the MIME type passed along with the uploaded file, because it is not checked for authenticity and can be forged, but have no qualms with 'trusting' the file extension?
an alternative method
, the extension can be grabbed with:
$ext = pathinfo($filename, PATHINFO_EXTENSION);
Finally, to answer the original question posed by Orc,
will contain the name of the file as sent by the browser (eg.
), extension and all.
The Following User Says Thank You to Salathe For This Useful Post:
View Public Profile
Send a private message to Salathe
Visit Salathe's homepage!
Find More Posts by Salathe