michellem,

Assuming things were uploaded okay, which may not always be the case....

Ah... According to Lincoln not all clients return a MIME type, so the result your getting must be because IE doesn't bother, so there is no media type set.

When a file is uploaded the browser usually sends along some information along with it in the format of headers. The information usually includes the MIME content type. Future browsers may send other information as well...

I've had lots of fun recently with upload scripts, sometimes things work on IE, sometimes on Mozilla and sometimes on Opera - if only they would all play the same way. end rant..

If you need to know the meida-type you can use the LWP::MediaTypes (which just looks at the extension really), or the File::MMagic which looks for magic numbers in the file and makes a good guess.

Hope this is helpful...


In reply to Re: IE vs Netscape problems with Uploading by ajt
in thread IE vs Netscape problems with Uploading by michellem

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.