Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

File input field in Firefox 3.0

7 views
Skip to first unread message

arung...@gmail.com

unread,
Jun 30, 2008, 12:29:24 AM6/30/08
to
Hello people,

In firefox 3.0, I couldn't get the file path from a HTML input file
field using javascript.

If i browse and select a file and use javascript to retrieve the full
file path using document.getElementById('id').value, I'm just getting
the file name

for ex: sample.txt

but in earlier versions of firefox we get this as "c:\sample.txt"

I very well know that, getting the full file path is not necessary,
but for my purpose it is.

Is there a way to get the full file path instead of just the filename
from the file input field using javascript.

or I need to use XPCOM, but .....

I don't know, but I badly need this to be done.......what will be the
workaround for this ???

Thanking You,
Arun

0 new messages