Gossamer Forum
Home : Products : Others : Fileman :

audio file extensions not recognized

Quote Reply
audio file extensions not recognized
I've been Using Fileman 1 for about a year on a site where musicians can collaborate online. It works great!

I've spent the last two days tweaking and playing with Fileman 2.03 and when I finally got around to uploading an audio file, it wasn't recognized as an audio file type!

Is there a way to fix this? And if so, is there also a way to have it play the file? I'm not a programmer, but it appears that the file won't play because of the way the files are linked via cgi rather than a direct link to the file. If not, I guess I am stuck with Fileman 1...

Unsure

Fileman 2.03 would make it SO much easier for non-techies to collaborate on lyrics without having to upload/download word docs, as most of my audience does now...
Quote Reply
Re: [axe] audio file extensions not recognized In reply to
I should have mentioned that this is for the mp3 file extension.

After much searching I found the MIMETypes.pm file and added mp3 in the three different routines thusly:

# Map file extention to image file

mp3 => 'sound.gif',

# To guess the content-type for files by extention

mp3 => 'audio/mpeg',

# Map content-type to image file

'audio/mpeg' => 'sound.gif',

And it still does not recognize an mp3 file.

Please help...
Quote Reply
Re: [axe] audio file extensions not recognized In reply to
lordy, lordy...

OK, whilst digging through the million files fixing grammar, I found another module that needed changin' (seems like stuff is kinda scattered hither an yon in this version)

in Commands.pm I added mp3 to the following:

# Mapping of image name to icon files.

'wav au mid mod mp3' => ['sound1.gif' => 'Sound File'],

So, now mp3 is a rcognized sudio file type...

Unsure that leaves one problem. Playing the file from within Fileman...

And of course, I sit here wondering if anyone from Gossamer is ever going to respond to this and my other post concerning arial fonts...
Quote Reply
Re: [axe] audio file extensions not recognized In reply to
ditto: http://www.gossamer-threads.com/...;;page=unread#unread
Quote Reply
Re: [axe] audio file extensions not recognized In reply to
Change the command below round line #1299 within Commands.pm:

my $doc = "doc xls pdf DOC XLS PDF";

To:

my $doc = "doc xls pdf DOC XLS PDF mp3 MP3";

TheStone.

B.
Quote Reply
Re: [TheStone] audio file extensions not recognized In reply to
I really appreciate this reply and the try for a fix. This capability is extremely important to my users and if I cannot get this to work I'll have to stick with version 1.

I think you're on the right track as now my audio player opens when I click on the file, but it says it is trying to play a file called "fileman" which is not the case. This happens when I click on the filename under "Name" and the icon under "View." I uploaded an mp3 file and I can play it directly from the user directory but not from within fileman.

Please don't give up on me now ;-)
Quote Reply
Re: [axe] audio file extensions not recognized In reply to
Change the _view_file subroutine like:

.....
else {
print $self->{in}->header({ '-force' => 1,
'-type' => $content_type,
'-Content-Length' => $file_size,
'-Content-Disposition' => \"filename=$filename",
});
}
....

Hope that helps.

TheStone

B.
Quote Reply
Re: [TheStone] audio file extensions not recognized In reply to
nope, still the same thing, tries to play a file called "fileman" Unsure

don't know if this helps, but the rendered source code shows this as the "view" and "name" URL within fileman:

fileman.cgi?cmd_do=cmd_view&work_path=&c_edit=bewitched.mp3&

I REALLY, REALLY appreciate this!

Just as a "this is what I did, is that right?" in the code you posted, the only difference between what was in Commands.pm for the "sub _view_file" and what you posted was this line, which is what I added:

'-Content-Disposition' => \"filename=$filename",
Quote Reply
Re: [axe] audio file extensions not recognized In reply to
here's a curiosity: this works in Netscape 4.x Mad

but, since only about 6% of Internet users use that browser, this is still a problem (thanks again, Bill Gates!)

in a perfect world, Netscape would rule...

any more ideas?
Quote Reply
Re: [axe] audio file extensions not recognized In reply to
That's strange! Mad. Can you send me the access info of Fileman in private? I'll have a closer look

TheStone.

B.
Quote Reply
Re: [TheStone] audio file extensions not recognized In reply to
I sent ya the info last week. Any news for me?
Quote Reply
Re: [axe] audio file extensions not recognized In reply to
Just to update people who may be interested in the ultimate outcome of this. Apparently nobody can figure out how to make this work with Win98SE, IE 6, Windows Media Player 7.1, which are, unfortunately, the most popular configuration on the Web today :-( Here is the respnse I got from theStone:

______________________________________________________________

From the Stone:

Hi Christian,

When I hit the mp3 link, the song name was appeared on the playing
list instead of fileman as you said.

TheStone.

______________________________________________________________

From me:

what OS are you using? What browser? What media player?

I have had several friends and customers try this out, all using the most
widely used stuff on the Net. Win98SE, IE 6, Windows Media Player 7.1

______________________________________________________________

From the Stone:

Windows XP/IE6/RealOne Player

______________________________________________________________


From me:

If you have any more ideas, I would appreciate it but most of my clients are musicians, not computer techs and I'm not going to suggest that they all switch to Real or whatever. If this won't work across the most popular stuff, then I can't use it. I know it's a pain to create something that works on everything (does anything? ;-)) but it should work on the most common things :-/

______________________________________________________________

And I guess this is where it ends... unhappily, I will have to stay with Fileman ver 1...
Quote Reply
Re: [axe] audio file extensions not recognized In reply to
this problem was due to Windows Media player. The new Windows Media Player ver 9 fixes this. It's not often that Bill Gates does something right...

Tongue