-8

How can I get the full path of an uploaded file in ? It always returns c:\fakepath. This file path is sent directly to the controller using jquery. So, I want the full path for my servlet. Is there any other way?

RossC
  • 1,200
  • 2
  • 11
  • 24
Saranya
  • 17
  • 1
  • 1
  • 4

1 Answers1

0

No, this is blocked for security reasons.

Browsers hide the full path because it's a breach in security if the website could see the full path to a file you've selected.

sgtfrankieboy
  • 1,020
  • 3
  • 13
  • 30