dave wrote:
> On Fri, 27 Apr 2012 17:52:14 +0200, "J.O. Aho"<u
...@example.net>
> wrote:
>> dave wrote:
>>> I have a .webm video file on disc. It opens and plays pefectly from FF
>>> useing file:/// etc However when try to play it from a server (I have
>>> no control over the server), then FF displays that same webm file as
>>> garbage (ascii pages of text). I uploaded the file as a binary file
>>> type using ftp.
>>> Any ideas as what the problem might be?
>> Have you checked the server is using the right headers when sending the data?
>> wget -S http://...
>> would give you some clues.
> Thanks. Didn't know about wget (not expert user). I did use it and
> retrieved the file back to client PC (Windows). Played it locally with
> file/// etc and it worked fine. So the file on the server is the same
> as client. I don't really understand enought to know what is not
> working here. When I load a .jpg on the server (from FF) I see the
> picture. Click on a .webm file and get pages of ascii. Looks to me
> like some kind of file association that FF doesn't know about when
> getting the file from server. (?)
The question isn't if the file is different, the question is if the server
sends the right header for the file, for example for a standard web page you
get "Content-Type: text/html", for a jpg image you get "Content-Type:
image/jpeg".
So do you get "Content-Type: video/webm"? If you don't, then the server is
using the wrong content type for the file and those a browser will not be able
to play it properly.
--
//Aho