Solved

How to get uploaded file value in JS?

Posted on 2008-10-17
5
543 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
  • 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 500 total points
ID: 22743118
0
 

Author Closing Comment

by:sastry_hora
ID: 31507175
good solutions
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
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…

809 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