It's a very deliberate security design implement by all browsers otherwise a invisible hidden form field could read any file on your filesystem
On Friday, December 5, 2014, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 05 Dec 2014 16:41:55 -0200, martijn.list <martijn.l...@gmail.com> > wrote: > > Hi, >> > > Hi! > > I have a form which contains an Upload component and some other fields. >> >> If I select a file for upload and submit the form and the page >> validation fails (for example because I forgot to fill in some required >> field), the selected file is no longer selected. >> >> Is this by design? The other fields are retained on a validation error. >> > > This is how HTML's <input type="file"> works. It doesn't allow you to give > it an initial value. > > -- > Thiago H. de Paula Figueiredo > Tapestry, Java and Hibernate consultant and developer > http://machina.com.br > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com @hlship