W3C home > Mailing lists > Public > www-html@w3.org > February 1999

Uploading files with Internet Explorer 4.5 for Mac OS

From: Reinier van Kleij <rein@scano20.vol.it>
Date: Wed, 24 Feb 1999 05:58:41 -0500 (EST)
Message-ID: <00b401be5fe4$31308c40$1dc56397@tin.it>
To: <www-html@w3.org>

I am implementing a form that uploads files. I only allow gif (.gif) or jpeg
(.jpg) files.
In the form I have some JavaScript that checks the file extensions to be
correct (.gif or .jpg).
The form is submitted and an ASP is doing all the uploading using the
ActiveFile ActiveX component. This component allows me to see also the mime
type of the uploaded file. The following MIME types are allowed: image/gif
and image/jpeg. This to avoid the people change the file extension to upload
applications (cq viruses). Everything works perfect for IE & Netscape on Win
platforms and for Netscape on Mac: they all send the correct mime type of
the uploaded  files.

 IE 4.5 for Mac though sends application/x-macbinary when uploading a jpeg
or gif file, which is obviously wrong...

Does anybody know, why IE is doing this and how to correct this "feature"?

Thanx very much.


Reinier van Kleij

               Dr. Ir. Reinier van Kleij
                       Exol SpA
                   Internet Projects
           Viale Regina Elena 14, 09125 Cagliari

 Tel:   +39 070 6013 321     GSM:     +39 (0) 335 695 0546
 Fax:   +39 070 6013 237     GSM Fax: +39 (0) 335 500 5090
 http://reinier.vol.it/                http://www.exol.it/
Received on Wednesday, 24 February 1999 06:05:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:50 UTC