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?

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?

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;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.