Re: [PHP] File upload difference between browsers

2005-02-01 Thread Marek Kilimajer
Graham Cossey wrote: I have a problem uploading a file in IE6 or Firefox1.0 but it works fine using Opera7.54. The problem is that I want to ensure that the file being uploaded is a CSV file, so I test the $_FILES['file']['type'] value. In Firefox & IE it is returned as "application/octet-stream" b

Re: [PHP] File upload difference between browsers

2005-02-01 Thread Richard Lynch
Graham Cossey wrote: > The problem is that I want to ensure that the file being uploaded is a > CSV file, so I test the $_FILES['file']['type'] value. That only ensures that somebody else can forge the type header being sent to you. Anybody with half a clue (okay, a clue and a half) could do that