[Seaside] Suggestion: WAFile subclass: #WAImage for image uploads
Avi Bryant
avi.bryant at gmail.com
Wed Mar 23 15:28:25 CET 2005
On Wed, 23 Mar 2005 09:19:59 -0500, Bany, Michel <mbany at cincom.com> wrote:
> In the VisualWorks port, an instance of WAFile is created
> when the HTTP request includes a MIME part. This happens
> at a very early stage while parsing the HTTP request
> so that proper WAxxx objects are made available to
> Seaside.
> Do you think we should create a WAImage object wherever
> appropriate this early in the process ? This would imply
> parsing every file. I think it would be enough to convert
> WAFile objects into WAImage as needed.
>
> html fileUploadWithCallback:
> [:f| [image := f asImage ...] on: NotAnImage do: [:e | ]
It should certainly only happen when requested - I think the original
suggestion was to have a specific #imageUploadWithCallback method,
whose implementation would probably look very much like the above.
Avi
More information about the Seaside
mailing list