[jboss-user] [JBoss Seam] - Re: <s:fileUpload/> IE/Firefox Filename differences

shane.bryzak@jboss.com do-not-reply at jboss.com
Tue Apr 17 21:06:59 EDT 2007


This is expected behaviour, the filename simply contains what is provided by the web browser.  If you just want the base filename without the path then you will need to extract it yourself, or use a utility - the Apache Commons IO library has a method that does this, FilenameUtils.getName(fileName).  More details can be found here:

http://jakarta.apache.org/commons/fileupload/faq.html#whole-path-from-IE

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038194#4038194

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038194



More information about the jboss-user mailing list