Mandrake Linux Archives: cooker@mandrivalinux.org

Mandrake Linux: cooker@mandrivalinux.org


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

  • From: oeriksson
  • Subject: [Cooker] [Bug 16378] [php4-mime_magic] NEW: mime_content_type doesn't returm mimetype for PDF files
  • Date: 31 Aug 2005 19:59:13 -0000

User ID: 1324, 19 bugs reported (105 fixed, 0 duplicate, 0 invalid), 389 comments.

http://qa.mandriva.com/show_bug.cgi?id=16378


oeriksson@mandriva.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|qa@mandriva.com             |oeriksson@mandriva.com
             Status|NEEDINFO                    |NEW




------- Comment #9 from oeriksson@mandriva.com  2005-08-31 21:53 -------
I just uploaded php4-mime_magic-4.4.0-2mdk into cooker that will use the
/etc/httpd/conf/magic file instead.

Please try.


-- 
Configure bugmail: http://qa.mandriva.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


------- Reminder: -------
assigned_to: oeriksson@mandriva.com
status: NEW
distribution: cooker
creation_date: 
description: 
mime_content_type doesn't returm mimetype for PDF files. 
I had to manually modify /usr/share/misc/magic.mime and replace "PDF document" 
by application/pdf or else it will not sy this is a PDF file. 
 
I know there's better extensions like php-fileinfo, but unfortunately 
php-fileinfo is only available for PHP5 and i have to keep PHP4. 
 
 
[root@info1 ~]# grep -i pdf /usr/share/misc/magic.mime 
0       string  !<PDF>!\n               application/x-prof 
0       string          PDF                     Macintosh PDF File (data) 
65      string          PDF                     Macintosh PDF File(rsrc + data) 
0       string          %PDF-           PDF document 
[root@info1 ~]# vim /usr/share/misc/magic.mime 
[root@info1 ~]# service httpd restart 
Shutting down httpd:                                            [  OK  ] 
Starting httpd:                                                 [  OK  ] 
[root@info1 ~]# grep -i pdf /usr/share/misc/magic.mime 
0       string  !<PDF>!\n               application/x-prof 
0       string          PDF                     Macintosh PDF File (data) 
65      string          PDF                     Macintosh PDF File(rsrc + data) 
0       string          %PDF-           application/pdf



Date Index | Thread Index

Search the archive:



To (un)subscribe from/to the lists:

Sympa mailing lists server.





Fund the Mandriva Linux project

Looking for a job?