Re: [PHP] File Types

2003-09-15 Thread Raditha Dissanayake
You don't need to look any further than mime.types files included in 
your apache distro.

Ed Curtis wrote:

I currently limit file types in an upload script by using an allowed
types array
$allowed_types = array(image/jpeg, image/gif);

I also need to allow files of with the following extentions.

.tif, .pm7, .p65, .pdf, .qxp, .pmd, .eps

Is there a site out there anywhere that gives the mime types of theses
files?
Thanks,

Ed

 



--
http://www.radinks.com/upload
Drag and Drop File Uploader.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] File Types

2003-09-15 Thread Javier Tacon

You could use the function exif_imagetype() to see what type of file has been uploaded.

http://es.php.net/manual/en/function.exif-imagetype.php


-Mensaje original-
De: Ed Curtis [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 15 de septiembre de 2003 15:02
Para: [EMAIL PROTECTED]
Asunto: [PHP] File Types
Importancia: Baja



 I currently limit file types in an upload script by using an allowed
types array

$allowed_types = array(image/jpeg, image/gif);

 I also need to allow files of with the following extentions.

 .tif, .pm7, .p65, .pdf, .qxp, .pmd, .eps

Is there a site out there anywhere that gives the mime types of theses
files?

Thanks,

Ed

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

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



Re: [PHP] File Types

2003-09-15 Thread Ed Curtis

On Mon, 15 Sep 2003, Raditha Dissanayake wrote:

 You don't need to look any further than mime.types files included in
 your apache distro.

Did that as well as googled for the list of extensions. Still can't seem
to find the mime type for .pm7, .p65, .qxp and .pmd.

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



RE: [PHP] File Types

2003-09-15 Thread Ed Curtis

On Mon, 15 Sep 2003, Javier Tacon wrote:


 You could use the function exif_imagetype() to see what type of file
 has been uploaded.


 The filetypes are not all images types.

Ed

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



Re: [PHP] File Types

2003-09-15 Thread Raditha Dissanayake
Having done some coding for the print industry i can tell you that pm7 
may be adobe page maker 7 and p65 could be pagemaker 6.5 no idea about 
qxp and .pmd though.



Ed Curtis wrote:

On Mon, 15 Sep 2003, Raditha Dissanayake wrote:

 

You don't need to look any further than mime.types files included in
your apache distro.
   

Did that as well as googled for the list of extensions. Still can't seem
to find the mime type for .pm7, .p65, .qxp and .pmd.
 



--
http://www.radinks.com/upload
Drag and Drop File Uploader.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] File Types

2003-09-15 Thread Duncan Hill
On Monday 15 Sep 2003 14:23, Ed Curtis wrote:
 On Mon, 15 Sep 2003, Raditha Dissanayake wrote:
  You don't need to look any further than mime.types files included in
  your apache distro.

 Did that as well as googled for the list of extensions. Still can't seem
 to find the mime type for .pm7, .p65, .qxp and .pmd.

Didn't google hard enough :)

.pm5application/x-pagemaker
I'd guess that can be extended to pm7 and 65 - I've seen x-pagemaker5 as 
well.

pmd is also pagemaker according to filext.com, as well as some software I've 
never heard of.

QXP is a good one, and you may need to ask the manufacturer of the software 
what mime type is used.

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



Re: [PHP] File Types

2003-09-15 Thread Ed Curtis

 Didn't google hard enough :)

 .pm5  application/x-pagemaker
 I'd guess that can be extended to pm7 and 65 - I've seen x-pagemaker5 as
 well.

 pmd is also pagemaker according to filext.com, as well as some software I've
 never heard of.

 QXP is a good one, and you may need to ask the manufacturer of the software
 what mime type is used.


 I think too that application/pagemaker should work for .p65 and .pm7
as well as .pmd (Page Maker Document). I think .qpx is a Quark Express
document but I can't find the mime for that anywhere.

Thanks for the repiles,

Ed

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