Solution to problem : [Seaside] serve jpg image files from form
m.bany at wanadoo.fr
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
fileName: root name,'Picture', '.jpg'.
More information about the Seaside