Yep, that's the one concern I had when I mentioned the scripting security issues. As I recall, and I could be wrong, the problem isn't actually reading or writing the filename, it's just a text field for all intents and purposes as far as that goes, but trying to submit the form via scripting I think was the problem. However, I don't think that would come into play in this scenario, so there might actually be no problem at all.

I think I'm going to play with this when the wife and kids head off to bed tonight... My curiosity is piqued :)

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

Jason King wrote:
Haven't tried this lately but there used to be security restrictions about reading the filename in <input type="file"> elements or writing the filename.
Frank W. Zammetti wrote:


Ah, didn't see this until I posted that form code :)

This is what I was talking about with the "better ways to present the UI " comment. I would have to test it, but I *think* you should be able to have a single <file> element that is visible, with a number of hidden ones, and for each file you select with the visible one you actually populate a hidden one. Maybe have a listbox that the files get added to, and the user can remove existing items or add new ones, something along those lines (I'm thinking out loud here).

There might be some scripting security issues there, I'd have to play a bit, but I suspect it might work. That would give you your single browse and upload button like you want.

If this is something that is interesting to enough people, I would mind throwing a real tag together with some options and such, perhaps a couple of different UI presentations, etc.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




.





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to