Hi Guys,
my name is Lukas and I have found contact on you on w3c site. I have read,
that you are professional in forms and because of that I am comming to you
with professional issue, which I was fighting recently, and I believe that
solution of this, could solve some problem with forms. I am using HTML with
all other stuff actively and I really like it. In recent time I was
experimenting with some new properties of <input type:file> tag in forms,
concretely files (http://help.dottoro.com/ljxenmhs.php). I find it really
useful, to have access to files. But I have an important issue with
this property. I have try this in different browsers and it is always
the same. When I set multiple files for this input, everything is OK.
But when I set property files for this input, there is an problem. I
am setting this property on DOM object, using operator []. But alway, when I
set it property length of files (Filelist object), keeps on 0.
Ok, better on example. Lets say, that I have obtained file from dataTransfer
object, what is correct and common behavior, as Drag and Drop is coming with
HTML5. And now, I would like this file object assign to input DOM object, so
it is input.files[0]=file. But the problem is, that length of files is
always 0, so on submit of form, where this input is included, nothing is
send. Why I want to do this, like why to not send is directly is to keep old
behavior of form and
also give chance to user check there files before sending them. So I see
solution in letting length property to be accessible, or even better, to let
operator [] set length property of files. Also you could make operator []
unavailable to write, but I would see this as step back, because as I have
demonstrated before, there could be good use for this access.
I hope, that I have not take you too much time, and that this is not so
stupid comment. So thanks and good bye.
--
Sincerely, Lukas Tencer.
Lukas Tencer | lukas.tencer@gmail.com
Web: http://tencer.hustej.net/
Phone: (+421) 908 223 938