• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 557
  • Last Modified:

How to get uploaded file value in JS?

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
sastry_hora
Asked:
sastry_hora
  • 3
1 Solution
 
MMDeveloperCommented:
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
 
Loganathan NatarajanLAMP DeveloperCommented:
Probably you can get the full path in FF.
0
 
Loganathan NatarajanLAMP DeveloperCommented:
Sorry, Probably you can not get the full path in FF.
0
 
Loganathan NatarajanLAMP DeveloperCommented:
0
 
sastry_horaAuthor Commented:
good solutions
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now