-1

I want to get total path,for example if the user upload an image from d drive like: D:/sample.jpg ,

I want to get total that path only (D:/sample.image).

Is it possible ? if possible please help me(Java using servlet).

ρяσѕρєя K
  • 132,198
  • 53
  • 198
  • 213
  • What have you tried so far? Include some code. Also, tell us what EE server you are using and all this kind of stuff. – Steffen Feb 08 '16 at 12:32

1 Answers1

0

This information is not exposed to websites.

When a user uploads a file, only the path name component of the file can be thrusted. Google chrome for examples uploads files with C:/fakeroot/image.png. The only way for you to get the real path is either using a java or flash applet that upload the files manually.

Ferrybig
  • 18,194
  • 6
  • 57
  • 79