?
Solved

How to get uploaded file value in JS?

Posted on 2008-10-17
5
Medium Priority
?
553 Views
Last Modified: 2012-05-05
Hi all..,

        I am using a HTML file Input control to upload some files. I'm able to get the file path in IE using the command..."document.getelementbyId("filecontrolid").value. Now, the problem is if I run the application in IE its giving full filename, including filepath. But, the same code is yeilding only filename (without path) in mozilla browser. How to over come this and get the filename with filepath in both browsers???
0
Comment
Question by:sastry_hora
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 15

Expert Comment

by:MMDeveloper
ID: 22742858
I'm not exactly sure this is doable. Browsers usually have some built-in restrictions to protect privacy, such as displaying full file paths.
0
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 22743072
Probably you can get the full path in FF.
0
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 22743075
Sorry, Probably you can not get the full path in FF.
0
 
LVL 36

Accepted Solution

by:
Loganathan Natarajan earned 2000 total points
ID: 22743118
0
 

Author Closing Comment

by:sastry_hora
ID: 31507175
good solutions
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question