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

[whatwg] File Upload Control

From: Hallvord R M Steen <hallvors@gmail.com>
Date: Thu, 19 Aug 2004 11:20:19 +0200
Message-ID: <dd4c8a404081902207a455fc@mail.gmail.com>
On Wed, 18 Aug 2004 18:33:02 +0200, Olav Junker Kj?r <olav at olav.dk> wrote:
> 
> > After reading this discussion on the Mozilla site about the file upload
> > control, from what I've seen, the only purpose of accessing the ".value" of
> > a file upload control is to know whether the user has entered a file name.
> 
> It can be useful for showing a thumbnail when the user have selected an
> image for upload. Pass the value to an img src.

This won't work in the newest browsers - restrictions on mixing local
and web content are generally getting stricter and stricter. You may
be able to configure Mozilla to be less strict but AFAIK Opera doesn't
permit it at all.

I don't see any strong reason for blocking JS access to the value
attribute though.
-- 
Hallvord R. M. Steen
Received on Thursday, 19 August 2004 02:20:19 UTC

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