SafeSpeed wrote:
Is it indeed? How's it doing that? How can I see it? As far as I can actually see, all the server is sending is a text file.
If it is wrong, how do I fix it?
It is. I can see the mime-type sent by the server because I use Opera 8 browser and it displays the text file - which tells me that it's text/plain in its handy little Info panel. I also use a content-filtering proxy called Proxomitron which allows me to view the headers that the server sends.
The reason I looked is that not using Internet Explorer I see this sort of thing all the time - click link, file opens as text file. The reason it's happening is that .pls is not a really common playlist format and a standard Apache installation has no definition for what it is. Apache, having no alternative, defaults to text/plain since not sending a Content-Type header is a bit of a no-no.
If you have control over the server (I'm guessing not) you can add
Code:
AddType audio/x-scpls .pls
to the http.conf (or a separate mime-types file depending on how Apache is set up on that machine)
Otherwise, if the server permits .htaccess files, you can add the same line to (or create) the .htaccess file in the root directory of your site.
Ultimately it's probably only an issue for those of us who don't use Internet Explorer.
Did that make sense?