Re: File uploading and saving info on mysql

From: Date: Fri, 04 May 2007 13:27:10 +0000
Subject: Re: File uploading and saving info on mysql
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-254405@lists.php.net to get a copy of this message
Richard Lynch wrote:
Browsers will probably NOT populate these reliably... Mac Safari, might, for example, choose "application/x-pdf" for the PDF file. You really can't rely on 'type' to be useful in any way, shape, or form.
Thanks for the tips, I've deleted this check, and changed how I check for the file type in the code. and I've redone the code to match Jim Lucas suggestion also, it's working very nicely right now.

« previous php.general (#254405) next »