Mozilla XML multipart form problem

Discussion in 'Javascript' started by Mark, Jun 4, 2004.

  1. Mark

    Mark Guest

    If I use Mozilla to post multipart form data that includes an XML
    schema file with an extension of .xsd the Content-Type is
    "application/octet-stream".

    If I use an extension of .xml I get the Content-Type "text/xml" [which
    is what I'm after].

    Is this a known problem and is there another workaround besides using
    the extension .xml?

    Note that IE gets this correct and always uses the Content-Type
    "text/xml".

    Many thanks in advance for any answers!
     
    Mark, Jun 4, 2004
    #1
    1. Advertising

  2. Mark wrote:

    > If I use Mozilla to post multipart form data that includes an XML
    > schema file with an extension of .xsd the Content-Type is
    > "application/octet-stream".
    >
    > If I use an extension of .xml I get the Content-Type "text/xml" [which
    > is what I'm after].
    >
    > Is this a known problem and is there another workaround besides using
    > the extension .xml?
    >
    > Note that IE gets this correct and always uses the Content-Type
    > "text/xml".


    That has nothing to do with JavaScript so I am not sure why you ask here.
    As for the problem I guess that Mozilla doesn't know which MIME type to
    associate with the suffix .xsd and therefore chooses
    application/octet-stream.


    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Jun 4, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Li Zhang
    Replies:
    4
    Views:
    6,141
    softip
    Feb 27, 2009
  2. Matt
    Replies:
    8
    Views:
    144,552
    zeeshanakhter2009
    May 26, 2012
  3. Duncan
    Replies:
    0
    Views:
    1,522
    Duncan
    Feb 24, 2006
  4. Matt
    Replies:
    1
    Views:
    11,293
    David Dorward
    Oct 12, 2004
  5. Replies:
    1
    Views:
    462
Loading...

Share This Page