Flash Mime Type

Flash Mime Type

am 04.06.2007 02:01:01 von KyN

Hi,

I am having an issue with not being able to open a flash file within
firefox. The flash file is hosted on an IIS 6.0 server and the global mime
type for flash files is set to application/x-shockwave-flash. I can open the
file fine in Internet Explorer but when I try to open it in Firefox I get a
prompt to either select an application to open the file with or save the file
to disk. From my research it seems to be a misconfigured web server. I have
added the mime type at the website level in IIS as well but no luck. The
reason I can open the file in IE is because IE has mime type guessing and can
open it but Firefox sticks with the content type guidelines and doesnt. To
clarify I am attempting to open the swf file directing but when the file is
wrapped with an html page it opens fine. Has anyone experienced this issue
and have found a resolution? Please help.

Thanks in advance.

Re: Flash Mime Type

am 04.06.2007 03:04:38 von Ken Schaefer

If this is a mis-configured server, then you need to correct the MIME type.
If the MIME type is correct then you need to fix Firefox...

Cheers
Ken


"Ky N" wrote in message
news:756BA600-7088-4A84-93D5-0E674D91579E@microsoft.com...
> Hi,
>
> I am having an issue with not being able to open a flash file within
> firefox. The flash file is hosted on an IIS 6.0 server and the global mime
> type for flash files is set to application/x-shockwave-flash. I can open
> the
> file fine in Internet Explorer but when I try to open it in Firefox I get
> a
> prompt to either select an application to open the file with or save the
> file
> to disk. From my research it seems to be a misconfigured web server. I
> have
> added the mime type at the website level in IIS as well but no luck. The
> reason I can open the file in IE is because IE has mime type guessing and
> can
> open it but Firefox sticks with the content type guidelines and doesnt. To
> clarify I am attempting to open the swf file directing but when the file
> is
> wrapped with an html page it opens fine. Has anyone experienced this issue
> and have found a resolution? Please help.
>
> Thanks in advance.

Re: Flash Mime Type

am 04.06.2007 18:19:02 von KyN

Wow! That was easy. "If this is a mis-configured server, then you need to
correct the MIME type. If the MIME type is correct then you need to fix
Firefox...". Why didnt I think of that.

This response really helps me out alot and anyone else that might be having
this same issue. Did I post my question in a way that prompted a response
like this? If I did please allow me to apologize.

I have verified the Windows 2003 server settings based on Microsofts
knowledgebase and the MIME type for flash files has been set correctly. To
clarify the MIME type is application/x-shockwave-flash for .swf files. But
once again directly opening flash files within Firefox prompts the user to
either select an application to open the file or save file to disk. Opening
the same file within Internet Explorer works fine. The thing is I can open
swf files from other websites directly from Firefox with no problems which
leads me to believe that the issue is on the server side. I was hoping that
someone might have experienced this issue before and can help out or point me
in the right direction. Is there a test I can perform to see if the correct
MIME type is being passed to the browser? Are there any other configurations
that need to happen on the server side?

Thanks in advance again for all the help.

"Ken Schaefer" wrote:

> If this is a mis-configured server, then you need to correct the MIME type.
> If the MIME type is correct then you need to fix Firefox...
>
> Cheers
> Ken
>
>
> "Ky N" wrote in message
> news:756BA600-7088-4A84-93D5-0E674D91579E@microsoft.com...
> > Hi,
> >
> > I am having an issue with not being able to open a flash file within
> > firefox. The flash file is hosted on an IIS 6.0 server and the global mime
> > type for flash files is set to application/x-shockwave-flash. I can open
> > the
> > file fine in Internet Explorer but when I try to open it in Firefox I get
> > a
> > prompt to either select an application to open the file with or save the
> > file
> > to disk. From my research it seems to be a misconfigured web server. I
> > have
> > added the mime type at the website level in IIS as well but no luck. The
> > reason I can open the file in IE is because IE has mime type guessing and
> > can
> > open it but Firefox sticks with the content type guidelines and doesnt. To
> > clarify I am attempting to open the swf file directing but when the file
> > is
> > wrapped with an html page it opens fine. Has anyone experienced this issue
> > and have found a resolution? Please help.
> >
> > Thanks in advance.
>
>

Re: Flash Mime Type

am 05.06.2007 14:36:57 von Andrew Morton

Ky N wrote:
> Is there a test I can perform to see
> if the correct MIME type is being passed to the browser?

You could use the wfetch program from Microsoft (download links are on
http://support.microsoft.com/kb/284285) or install the Web Developer add-on
in Firefox (http://chrispederick.com/work/web-developer/) and go
Information->View Response Headers after browsing to the URL of the .swf
file itself.

For example, using the latter I get
------------------------------------------------
Cache-Control: no-cache
Content-Length: 835
Content-Type: application/x-shockwave-flash
Last-Modified: Wed, 10 Jan 2007 13:23:26 GMT
Accept-Ranges: bytes
Etag: "c7ad7382ba34c71:ac0"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Tue, 05 Jun 2007 12:34:36 GMT

200 OK
------------------------------------------------

You do have both and tags in the html for the .swf file,
don't you?

Andrew

Re: Flash Mime Type

am 05.06.2007 18:24:04 von KyN

Hi Andrew,

I finally figured it out. I actually used wget on a linux box to get the
HTTP headers passed along from the server and it was passing the wrong
content-type which was application/octet-stream. After alot of digging I
found the issue was with the .NET version on the virtual directory the flash
file was hosted under. For some reason if the directory was set to use .NET
2.0 the server would send the wrong content-type but if I set the version to
..NET 1.0 the content-type would be passed along correctly. I will have to
figure out why this is.

But thanks so much for your help Andrew. I will definitely look into using
wfetch.exe for http issues next time.

-Ky

"Andrew Morton" wrote:

> Ky N wrote:
> > Is there a test I can perform to see
> > if the correct MIME type is being passed to the browser?
>
> You could use the wfetch program from Microsoft (download links are on
> http://support.microsoft.com/kb/284285) or install the Web Developer add-on
> in Firefox (http://chrispederick.com/work/web-developer/) and go
> Information->View Response Headers after browsing to the URL of the .swf
> file itself.
>
> For example, using the latter I get
> ------------------------------------------------
> Cache-Control: no-cache
> Content-Length: 835
> Content-Type: application/x-shockwave-flash
> Last-Modified: Wed, 10 Jan 2007 13:23:26 GMT
> Accept-Ranges: bytes
> Etag: "c7ad7382ba34c71:ac0"
> Server: Microsoft-IIS/6.0
> X-Powered-By: ASP.NET
> Date: Tue, 05 Jun 2007 12:34:36 GMT
>
> 200 OK
> ------------------------------------------------
>
> You do have both and tags in the html for the .swf file,
> don't you?
>
> Andrew
>
>
>

Re: Flash Mime Type

am 06.06.2007 12:57:35 von Ken Schaefer

Hi,

..NET shouldn't get involved at all unless you have mapped the file extension
(.swf) to the .NET ISAPI extension. Otherwise, if the file extension is not
mapped to any ISAPI filter, then it's handled by the IIS Static File
Handler, which honours your MIME type mappings...

I think something else is up here.

Cheers
Ken


"Ky N" wrote in message
news:4A69FF11-4CD3-4212-97FD-80D3BA3A7DC1@microsoft.com...
> Hi Andrew,
>
> I finally figured it out. I actually used wget on a linux box to get the
> HTTP headers passed along from the server and it was passing the wrong
> content-type which was application/octet-stream. After alot of digging I
> found the issue was with the .NET version on the virtual directory the
> flash
> file was hosted under. For some reason if the directory was set to use
> .NET
> 2.0 the server would send the wrong content-type but if I set the version
> to
> .NET 1.0 the content-type would be passed along correctly. I will have to
> figure out why this is.
>
> But thanks so much for your help Andrew. I will definitely look into using
> wfetch.exe for http issues next time.
>
> -Ky
>
> "Andrew Morton" wrote:
>
>> Ky N wrote:
>> > Is there a test I can perform to see
>> > if the correct MIME type is being passed to the browser?
>>
>> You could use the wfetch program from Microsoft (download links are on
>> http://support.microsoft.com/kb/284285) or install the Web Developer
>> add-on
>> in Firefox (http://chrispederick.com/work/web-developer/) and go
>> Information->View Response Headers after browsing to the URL of the .swf
>> file itself.
>>
>> For example, using the latter I get
>> ------------------------------------------------
>> Cache-Control: no-cache
>> Content-Length: 835
>> Content-Type: application/x-shockwave-flash
>> Last-Modified: Wed, 10 Jan 2007 13:23:26 GMT
>> Accept-Ranges: bytes
>> Etag: "c7ad7382ba34c71:ac0"
>> Server: Microsoft-IIS/6.0
>> X-Powered-By: ASP.NET
>> Date: Tue, 05 Jun 2007 12:34:36 GMT
>>
>> 200 OK
>> ------------------------------------------------
>>
>> You do have both and tags in the html for the .swf file,
>> don't you?
>>
>> Andrew
>>
>>
>>

Re: Flash Mime Type

am 06.06.2007 13:00:00 von Ken Schaefer

I'm sorry that what I wrote was blunt, but it is technically accurate.

The problem either exists at the server (it is sending the wrong headers),
or at the client (it is intepreting the headers incorrectly).

Any number of tools (e.g. a packet sniffer, WFetch, the various developer
toolbars/plugins, the HTTP Fiddler tool) would probably tell you what is
coming from the server. If what is coming from the server is correct, then
the problem exists in the browser (i.e. file a bug with the firefox guys).
If what is coming from the server is incorrect, we need to figure out why
(e.g. do you have an ISAPI filter installed that is altering the HTTP
response? Is there a proxy in the way that is mucking things up? Are you
configuring a setting, but it isn't being written to the metabase properly?)

Cheers
Ken

"Ky N" wrote in message
news:D4A3586A-4C2F-4B2E-9A06-226AE307F8EB@microsoft.com...
> Wow! That was easy. "If this is a mis-configured server, then you need to
> correct the MIME type. If the MIME type is correct then you need to fix
> Firefox...". Why didnt I think of that.
>
> This response really helps me out alot and anyone else that might be
> having
> this same issue. Did I post my question in a way that prompted a response
> like this? If I did please allow me to apologize.
>
> I have verified the Windows 2003 server settings based on Microsofts
> knowledgebase and the MIME type for flash files has been set correctly. To
> clarify the MIME type is application/x-shockwave-flash for .swf files. But
> once again directly opening flash files within Firefox prompts the user to
> either select an application to open the file or save file to disk.
> Opening
> the same file within Internet Explorer works fine. The thing is I can open
> swf files from other websites directly from Firefox with no problems which
> leads me to believe that the issue is on the server side. I was hoping
> that
> someone might have experienced this issue before and can help out or point
> me
> in the right direction. Is there a test I can perform to see if the
> correct
> MIME type is being passed to the browser? Are there any other
> configurations
> that need to happen on the server side?
>
> Thanks in advance again for all the help.
>
> "Ken Schaefer" wrote:
>
>> If this is a mis-configured server, then you need to correct the MIME
>> type.
>> If the MIME type is correct then you need to fix Firefox...
>>
>> Cheers
>> Ken
>>
>>
>> "Ky N" wrote in message
>> news:756BA600-7088-4A84-93D5-0E674D91579E@microsoft.com...
>> > Hi,
>> >
>> > I am having an issue with not being able to open a flash file within
>> > firefox. The flash file is hosted on an IIS 6.0 server and the global
>> > mime
>> > type for flash files is set to application/x-shockwave-flash. I can
>> > open
>> > the
>> > file fine in Internet Explorer but when I try to open it in Firefox I
>> > get
>> > a
>> > prompt to either select an application to open the file with or save
>> > the
>> > file
>> > to disk. From my research it seems to be a misconfigured web server. I
>> > have
>> > added the mime type at the website level in IIS as well but no luck.
>> > The
>> > reason I can open the file in IE is because IE has mime type guessing
>> > and
>> > can
>> > open it but Firefox sticks with the content type guidelines and doesnt.
>> > To
>> > clarify I am attempting to open the swf file directing but when the
>> > file
>> > is
>> > wrapped with an html page it opens fine. Has anyone experienced this
>> > issue
>> > and have found a resolution? Please help.
>> >
>> > Thanks in advance.
>>
>>