The reason I ask is that I'm trying to find a way to disguise the horrible,
uncustomisable 'Browse...' button on the 'input type=file'
I've placed a button that looks right in a layer, placed over the original
'Browse...' button and given it the following script:
This works to the extent that it activates the 'Browse...' button, and opens
a browse window, and when a file is selected, it populates the text part of
the 'input type=file' all well and good. But, when you click the submit
button, it seems to lock up. The entry disappears, and no success page is
Is there any way round this?
Also while I'm at it, is there a way to achieve this:
One 'input type=file' element, with a button that adds the selected file to
a list, so that multiple files to be uploaded could be listed in one select
area prior to submission, and also removed by the inverse method?
> From: Nick Cleaton[SMTP:nms-cgi-support@...]
> Sent: 25 March 2003 18:12
> To: Kirk, Andrew
> Cc: 'nms-cgi-support@...'
> Subject: Re: [Nms-cgi-support] TFmail - Question
> On Tue, Mar 25, 2003 at 11:48:52AM -0000, Kirk, Andrew wrote:
> > Hi there,
> > Is it possible for TFmail to process a file upload request from anything
> > other than a 'type=file' input?
> > ie from a valid file path dynamicaly inserted into a 'type=text' input?
> No, the browers won't let you do that, to prevent malicious web sites
> from being able to read an file on the user's hard disk.
The information and documents sent in this email are sent in confidence and are intended only for the use of the individual or entity named above. Please note that the contents may contain privileged, personal and/or confidential information and are not to be disclosed to any person other than the addressee. If you are not the intended recipient you are notified that any use, dissemination, distribution or copying of the information and documents contained in this email is strictly prohibited. Please advise us immediately if you have received this email in error and return this email and any copies to us as soon as possible.
From: Nick Cleaton <nms-cgi-support@li...> - 2003-03-27 18:21:40
On Wed, Mar 26, 2003 at 11:07:11AM -0000, Kirk, Andrew wrote:
> The reason I ask is that I'm trying to find a way to disguise the horrible,
> uncustomisable 'Browse...' button on the 'input type=file'
No, the browsers deliberately won't let you do that.