471,887 Members | 862 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,887 software developers and data experts.

Firefox 3 problem

Hi all,

I wanted to browse a file using HTML.
So, I have written this code:

[HTML]<input type="file" style="height:22px" size=30 name="file" id="file"><br><br>[/HTML]

and JavaScript code for get the path of that selected file as
[HTML]var file_name = document.getElementById('file').value;

But problem is I am getting only file name, not full path. Its working fine on Internet Explorer and Firefox version older than 3.0.
Then what should be the problem? Is it Firefox 3 issue or is there any error in my code?

Aug 27 '08 #1
1 1083
16,027 Expert Mod 8TB
No problem with your code. Firefox 3 has changed the behaviour of file upload elements. See http://developer.mozilla.org/en/docs..._upload_fields.
Aug 27 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Geoff | last post: by
12 posts views Thread by Howard Kaikow | last post: by
6 posts views Thread by Mark Olbert | last post: by
4 posts views Thread by dsimmons | last post: by
13 posts views Thread by Giggle Girl | last post: by
11 posts views Thread by minnesotti | last post: by
7 posts views Thread by Carlos Mendonça | last post: by
3 posts views Thread by SAL | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.