ICEFaces inputFile gets file content without loading

Is there a way to get the contents of the file being viewed without any file transfer / transfer operations? I am currently using the ICEFaces inputFile component, but I do not need the default file upload operation. Thank.

0


source to share


2 answers


Maybe not . The client should send (download) the file content along the request body to the server side whenever you want to have the file content on the server side.



If you expect to be able to fix this problem by passing only the file path and using normal stuff java.io.File

, etc., then you are wrong. Imagine I'm a client, and I have c:/passwords.txt

, how would you, as a server on the other end of the network, ever get your content on java.io.File

?

+1


source


I do not understand that this is possible. Browsers do not allow file transfer from client to server without user interaction.



Tough if you don't stick with IceFaces, this can be achieved by writing an applet that is granted the necessary permissions.

0


source







All Articles