- From: Hallvord R M Steen <hallvors@gmail.com>
- Date: Thu, 19 Aug 2004 11:20:19 +0200
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