[Seaside] Not able to upload [a Seaside.WAFile] through onClick
apaulavicius at gmail.com
Thu Sep 20 06:40:37 UTC 2007
use an hidden iframe for forms target
html iframe name: 'uiframe'.
attributeAt: 'target' put: 'uiframe';
----- Original Message -----
From: dirk newbold
To: Seaside - general discussion
Sent: Thursday, September 20, 2007 1:03 AM
Subject: Re: [Seaside] Not able to upload [a Seaside.WAFile] through onClick
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 directory
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: [
callback: [ :file | ... ];
onChange: (SUForm new
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.
More information about the seaside