[PHP-DB] cannot recognize $_FILES['UploadedFile']['type'];

2005-08-21 Thread Yui Hiroaki
I try to upload file from web. I use $_FILES['UploadedFile']['type']; It'file type is recognized by inix or linux enviroment. Now I use php on windows 2003 server. It does not recognize file type to up load file from web. I upload html, but $_FILES['UploadedFile']['type']; recognize as a text.

Re: [PHP-DB] cannot recognize $_FILES['UploadedFile']['type'];

2005-08-21 Thread Micah Stevens
After reading the documentation in more detail, this should not be server dependant. The browser is responsible for providing MIME type. So this depends on the browser, not the server you're running it on. What I would do is: $e = explode(., $_FILES['UploadedFile']['name']); // split by '.'