Re: [PHP] File Upload Name Mangling Question

2004-01-12 Thread Peter Vertes
On Mon, 2004-01-12 at 19:33, Richard Davey wrote: The filename isn't always the best way to tell. I mean I could rename an mp3 to jpg and you'd think it was a jpg and happily insert it into your database. Instead it's probably better to test the integrity of the image itself.     I didn't e

Re: [PHP] File Upload Name Mangling Question

2004-01-12 Thread Richard Davey
Hello Peter, Tuesday, January 13, 2004, 12:25:14 AM, you wrote: PV> Instead of it being "picture.jpg" it was PV> "/tmp/progtemp/php/uploads/phpeZQiXd".  Can anyone shed some light PV> as to how I could check to make sure that only JPEG images get PV> uploaded ?  Thanks in advance... The filename