This is a discussion on "MIME types" within the PHP Forum section. This forum, and the thread "MIME types are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
MIME types
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
MIME types
Hi!
I am trying to validate that a file submitted through a form is a TEXT file. When I use $_FILES['userfile_PFAM']['type']=='text/plain' it works, but only for files with .txt extension. But the user may also have a file containing text data and may not have given the .txt extension (for example I found that application/octet-stream also reffers to TEXT files). Does anybody know which of the MIME types of PHP must I check for? The MIME types that reffer to TEXT I mean. Thanx! |
|
|
![]() |
| Tags |
| mime, types |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Content Mime Type for .master | Corey Bryant | ASP.NET Forum | 2 | Dec 5th, 2007 19:28 |
| MIME type image check not working | nate2099 | PHP Forum | 1 | Jul 15th, 2007 03:33 |
| recordset constants (data types) | spinal007 | Classic ASP | 6 | Sep 19th, 2004 07:39 |
| MIME type for email with CDONTS | GillBates | Classic ASP | 8 | Dec 1st, 2003 15:19 |