cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Hertz <danielhe...@shaw.ca>
Subject Re: IE filepath error in flowscript - tried getName [solved]
Date Thu, 09 Mar 2006 21:03:25 GMT
Thanks Tony for the great tip!

I managed to get it working by using:

var fileName = 
form.lookupWidget("upload").getValue().getHeaders().get("filename").toLowerCase();
  // using getName because Internet Explorer sends entire path
  fileName = new java.io.File(fileName).getName();

Daniel.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message