Is there a way to set the value of a file input (<input type="file" />
) or is that all blocked for security? I'm trying to use google gears' openFiles to make a simple multi-uploader.
views:
251answers:
2
A:
I'm pretty sure that you are right and file input fields are read only.
Ian Oxley
2009-06-19 10:03:13
+2
A:
It is not possible to dynamically change the value of a file field, otherwise you could set it to "c:\yourfile" and steal files very easily.
However there are many solutions to a multi-upload system. I'm guessing that you're wanting to have a multi-select open dialog.
Perhaps have a look at SWFupload http://swfupload.org/ - This uses flash to achieve a multi-upload system, with multiple file selection.
Joel
2009-06-19 10:04:48