Solution to problem : [Seaside] serve jpg image files from form objects

Michel Bany m.bany at
Fri Jun 2 06:17:22 UTC 2006

> because the construct :  FormXTD fromFileNamed: 'x.jpeg' created an 
> instance of Form

I had a quick look, and yes, I agree, subclassing Form is quite a challenge.

> so for a quick hack, just take  the previous method and substitute the 
> Form>>asMIMEDocument method  with it.

Rather than hacking, you may want to try something like this

html imageWithDocument: aForm asMIMEDocumentOfTypeJPEG
        mimeType: 'image/jpeg'
        fileName: root name,'Picture', '.jpg'.

More information about the Seaside mailing list