[Seaside] Not able to upload [a Seaside.WAFile] through onClick
dirkdirk at gmail.com
Wed Sep 19 22:03:30 UTC 2007
Cheers, I'll give it a go
On 9/19/07, Lukas Renggli <renggli at gmail.com> wrote:
> > But instead of returning "a Seaside.WAFile" it is returning the
> > path.
> File-upload do not work through XmlHttpRequest due to security
> restrictions in the web-browser.
> The easiest solution is to have a separate form around the upload
> field and commit the whole form. Something along ...
> html form id: 'fileupload'; multipart; with: [
> html fileUpload
> callback: [ :file | ... ];
> onChange: (SUForm new
> id: 'fileupload';
> submit) ]
> If you want to go the AJAX way you have to do some nasty tricks using
> IFRAMES to push the data to the server. This is also what GMail is
> doing for their file uploads for example.
> Lukas Renggli
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside