Hi jorge, the HTML file-upload behaviour in IE is severely flawed. What you could do is what Gmail is doing: just not display the file-entry-field at all, display a link which allows the user to choose the file, internally connect the link with the hidden file-input field via JavaScript, then the interaction becomes a lot better...
regards, Martin On Wed, Mar 12, 2008 at 2:08 PM, jorge08 <[EMAIL PROTECTED]> wrote: > > Actually, the behavior is different when I use FireFox. Silly me, I've only > been using IE to trace this issue. When I use FireFox and have an invalid > path or file name, the inputFileUpload field is bank out then I get "This > field is required" error since I require that field. Which is a much better > behavior that what I get using IE. > I did install the Live HTTP headers module in FireFox and I can see that the > filename field is indeed clear out before it is sent to the server. Is there > anything I can do for the IE users about this issue? > thanks, > Jorge > > > > [EMAIL PROTECTED] wrote: > > > > > > > > On Tue, 2008-03-11 at 12:01 -0700, jorge08 wrote: > >> Yes, but the problem is that my uploadAction method in my backing bean > >> does > >> NOT get executed when the file name is invalid or the file does not > >> exist. > >> Nothing happens when I click on the command button. > > > > Does the browser actually send anything back to the server in that case? > > If not, then there is nothing that can be done about that on the server > > end... > > > > For firefox, you can check this by installing the excellent > > "live-headers" addon, and seeing what data (if any) the browser sends to > > the server. Tracking that info down for other browser types is a little > > more difficult.. > > > > Regards, > > Simon > > > > > > > > -- > View this message in context: > http://www.nabble.com/inputFileUpload-issue-when-file-does-not-exists-tp15892132p16002290.html > > > Sent from the MyFaces - Users mailing list archive at Nabble.com. > > -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces