Skip Menu |

This queue is for tickets about the File-Type CPAN distribution.

Report information
The Basics
Id: 33026
Status: new
Priority: 0/
Queue: File-Type

People
Owner: Nobody in particular
Requestors: daniel [...] vinq.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: application/octet-stream for every response
Date: Fri, 8 Feb 2008 10:35:29 -0800
To: bug-File-Type [...] rt.cpan.org
From: Daniel Bretoi <daniel [...] vinq.com>
Hi, I'm getting mime type to be application/octet-stream for odd things I've tried so far. here are a couple of examples: $ echo `date` > date.txt && file -i date.txt date.txt: text/plain; charset=us-ascii $ perl -wle 'use File::Type; my $ft = File::Type->new(); print $ft- Show quoted text
>checktype_filename("date.txt");'
application/octet-stream [ expected text/plain] $ perl -wle 'use File::Type; my $ft = File::Type->new(); print $ft- Show quoted text
>checktype_contents("hello world");'
application/octet-stream [ expected text/plain] Here's a successful case: perl -wle 'use File::Type; my $ft = File::Type->new(); print $ft- Show quoted text
>checktype_filename("folder1.png");'
image/x-png Daniel