Cheers, I'll give it a go<br><br>
<div><span class="gmail_quote">On 9/19/07, <b class="gmail_sendername">Lukas Renggli</b> <<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">> But instead of returning "a Seaside.WAFile" it is returning the directory<br>> 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: 'fileupload'; multipart; with: [<br> html fileUpload<br> callback: [ :file | ... ];<br> onChange: (SUForm new<br> id: 'fileupload';<br> 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>