- From: Reinier van Kleij <rein@scano20.vol.it>
- Date: Wed, 24 Feb 1999 05:58:41 -0500 (EST)
- To: <www-html@w3.org>
Hi, 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. Regards, Reinier van Kleij --------------------------------------------------------- Dr. Ir. Reinier van Kleij Exol SpA Internet Projects Viale Regina Elena 14, 09125 Cagliari Italy Tel: +39 070 6013 321 GSM: +39 (0) 335 695 0546 Fax: +39 070 6013 237 GSM Fax: +39 (0) 335 500 5090 mailto:rein@exol.it http://reinier.vol.it/ http://www.exol.it/ ---------------------------------------------------------
Received on Wednesday, 24 February 1999 06:05:37 UTC