Cheers, I&#39;ll give it a go<br><br>
<div><span class="gmail_quote">On 9/19/07, <b class="gmail_sendername">Lukas Renggli</b> &lt;<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">&gt; But instead of returning&nbsp;&nbsp;&quot;a Seaside.WAFile&quot; it is returning the directory<br>&gt; path.<br>
<br>File-upload do not work through XmlHttpRequest due to security<br>restrictions in the web-browser.<br><br>The easiest solution is to have a separate form around the upload<br>field and commit the whole form. Something along ...
<br><br>html form id: &#39;fileupload&#39;; multipart; with: [<br>&nbsp;&nbsp;html fileUpload<br>&nbsp;&nbsp;&nbsp;&nbsp; callback: [ :file | ... ];<br>&nbsp;&nbsp;&nbsp;&nbsp; onChange: (SUForm new<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id: &#39;fileupload&#39;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;submit) ]<br><br>If you want to go the AJAX way you have to do some nasty tricks using
<br>IFRAMES to push the data to the server. This is also what GMail is<br>doing for their file uploads for example.<br><br>Lukas<br><br>--<br>Lukas Renggli<br><a href="http://www.lukas-renggli.ch">http://www.lukas-renggli.ch
</a><br>_______________________________________________<br>Seaside mailing list<br><a href="mailto:Seaside@lists.squeakfoundation.org">Seaside@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br></blockquote></div><br>