Ups, my last mail was nonsense regarding the XHR upload. You can't do
that without iframe or swf tricks. Thanks for correcting me!
Alex
Am 13.02.2008 um 17:26 schrieb Alexander Klimetschek:
Am 12.02.2008 um 21:51 schrieb Tobias Bocanegra:
i don't know dojo, but afaik in ajax you cannot send a file unless
you
loosen some browser security policies. a work around is to use a
hidden iframe that contains a form.
You can send a form with an <input type="file"> via XHR, but you
cannot set the filename via Javascript. The user must click the
"browse" button and choose a file himself to avoid automatic
uploading of critical files.
Alex
--
Alexander Klimetschek
[EMAIL PROTECTED]
--
Alexander Klimetschek
[EMAIL PROTECTED]