W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2004

[whatwg] Re: overriding MIME type in accept attribute?

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 7 Jul 2004 15:10:52 +0000 (UTC)
Message-ID: <Pine.LNX.4.58.0407071510010.24332@dhalsim.dreamhost.com>
On Tue, 6 Jul 2004, Malcolm Rowe wrote:
>>
>> How is the UA to allow the user to override a MIME type and how on
>> earth is it supposed to know the user's motivation for doing so?
>
> Up to the UA. For example, if a file upload control had accept="image/*", a
> Windows-based UA could present a standard 'file open' dialog containing a
> list of all files matching that type (which, on a Windows machine, would
> probably be those files with file extensions that mapped to a matching MIME
> type).
>
> What the UA should not then do, IMO, is allow the user merely to change the
> file type in the dialog from 'Image Files' (or whatever) to 'All Files', and
> upload a differently-typed document. One possibility would be to present a
> warning dialog first, something like:
>
> "The file that you are trying to upload is a [Microsoft Word 8.0 Document],
> but the server has requested only [image] files. If you believe that this
> file really is an [image] file, you can override this warning.
>
> [Upload anyway] [Cancel]"
>
> (or something suitably mpt-filtered, anyway).

Disregard my previous reply on this thread. This is a much better
suggestion than mine.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 7 July 2004 08:10:52 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:35 UTC