[Seaside] Upload a file?

Avi Bryant avi at beta4.com
Fri May 9 11:52:22 CEST 2003


On Fri, 9 May 2003, Julian Fitzell wrote:

> html form: [
>     html fileUploadWithCallback: [:file |
>        "do something with file"]]

You have to put "html attributeAt: 'enctype' put: 'multipart/form-data'"
before the send to #form:.  You can see WAUploadTest for an example.

> I think the the block must get passed in a stream but I can't quite
> remember.

It gets passed a WAFile, which responds to #contents (with a stream) and
#fileName.



More information about the Seaside mailing list