PDA

View Full Version : File selection scripts on client side?


Laertes
05-06-2003, 06:35 PM
Hi folks! Don't know if this is possible on the client side, but I'm hoping it is.

I'm looking for help either finding or creating a javascript that will pop up a dialog box, allowing the user to select a file from their computer, and then list the resulting Full Path and Filename in the text box next to it.

You know, like you see below in the "Attach File" section of this page. That sort of thing.

What I'd really like to for someone to point me to a (free) canned script to do this, if such a critter exists.

Thanks much!

Laertes

Jon Hanlon
05-06-2003, 07:56 PM
Nope, no can do.
The <input type=file> element is the only one that can communicate with the local disc.
Due to the inherent dangers, most of the methods and properties of the <input type=file> element remain hidden from designers. This means that you can't 'customize' this element, or get much info from it - it's pretty much a black box.

agent002
05-07-2003, 06:56 AM
<input type="file"> is more like meant for serverside - for uploading files.