AJAX file upload
There is no clean way to do this but there are some decent workarounds.
The global way is a hidden iframe form submission all dynamically created with JS.
http://www.15seconds.com/issue/010522.htm
The two others are cleaner but browser specific:
http://www.captain.at/ajax-file-upload.php
http://www.codeproject.com/useritems/AJAXUpload.asp
SOAP has base64binary and unsignedbyte[]
October 31st, 2006 at 8:42 am
These all require either an IE activex object or special permissions… they won’t work in the real world…
I still haven’t found any way to fill my use case: clicking on an image to popup the file chooser and upload the file to the server (i.e. without the ugly “file upload” input shown on the page at all).