hello, I'm building a simple app with Icefaces and i need a file uploader that doesn't actually upload anything, i just need to get the string of the path that the client computer selects in the file explorer. I've already tried with the following code:
The fileupload JSF control renders as an HTML <tinput type="file"> tag (or something close to that). The processing of this tag is done by the user's client application (web browser), and, by definition, when an HTML form is submitted with a multipart MIME type, the contents of the selected file are MIME-encoded and bundled into the data stream that the user's browser transmits to the server. Which means that you'd need a custom browser with "pseudo file upload" capabilities to make that work.
I'm not sure what benefit comes from telling the server the path of the client's file gives, anyway, since weeb servers aren't allowed to reach down and fetch client's files anyway.
And, BTW, Internet Explorer uploads the complete absolute pathname, but other browsers such as Firefox upload relative paths. I think that's actually an IE bug.
An IDE is no substitute for an Intelligent Developer.