Re: File selected for upload is cleared when page validation fails [T5.4]

2014-12-08 Thread martijn.list
On 12/06/2014 06:21 PM, Howard Lewis Ship wrote: > It's a very deliberate security design implement by all browsers otherwise > a invisible hidden form field could read any file on your filesystem Yes you are completely right. Note to self: don't ask question if you are too tired to think Kind r

Re: File selected for upload is cleared when page validation fails [T5.4]

2014-12-06 Thread Bob Harner
Martijn, For most common scenarios the best fix is to do sufficient validation on the client (JavaScript) that the server side validation is not likely to fail. Going further, you could store the uploaded file *before* the validation fails, and then only display the file's name, rather than the in

Re: File selected for upload is cleared when page validation fails [T5.4]

2014-12-06 Thread Howard Lewis Ship
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 > wrote: > >

Re: File selected for upload is cleared when page validation fails [T5.4]

2014-12-05 Thread Thiago H de Paula Figueiredo
On Fri, 05 Dec 2014 16:41:55 -0200, martijn.list 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 selec