Re: File uploading and saving info on mysql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux