[Seaside] Upload a file?
Julian Fitzell
julian at beta4.com
Fri May 9 12:10:24 CEST 2003
Avi Bryant wrote:
> 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.
Hmm... does it make sense for #fileUploadWithCallback: to do that for you?
>
>>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