[Seaside] How to do file upload?

Avi Bryant avi.bryant at gmail.com
Wed Mar 30 23:18:20 CEST 2005

On Wed, 30 Mar 2005 12:53:28 -0800, Blanchard, Todd <tobl at amazon.com> wrote:
> I have this in renderContentOn: html 
> html heading: 'Upload the file:'; break; 
>         form: [ html fileUploadWithCallback: [:f | self session
> loadFromFileNamed: f]; break; submitButton ]. 

Hi Todd,

Look at WAUploadTest.  You need this before the send to #form:

html attributeAt: 'enctype' put: 'multipart/form-data'.

We should probably add #fileUploadForm: to encapsulate that.


More information about the Seaside mailing list