954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Javascrip, get a file's path

Hy,

I need to get the full path of a file trough JS/Prototype and all i get is the name file.
From what I read on the web this is a security issue and it is not allowed.

But still, is there a way?

Melow
Newbie Poster
20 posts since May 2010
Reputation Points: 10
Solved Threads: 0
 
stbuchok
Master Poster
730 posts since May 2011
Reputation Points: 120
Solved Threads: 93
 

Hy,

I need to get the full path of a file trough JS/Prototype and all i get is the name file. From what I read on the web this is a security issue and it is not allowed.

But still, is there a way?


The question is "where" "which file" "what context" is it a "current file" "objects file source"
What?

Troy III
Practically a Master Poster
609 posts since Jun 2008
Reputation Points: 120
Solved Threads: 80
 

i solved the problem
i had to save the file on the server side and then read it from there to pass it to the java function

i did it with the help of

FileItem

from

import org.apache.commons.fileupload.FileItem;
Melow
Newbie Poster
20 posts since May 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You