[Seaside] Suggestion: WAFile subclass: #WAImage for image uploads

Bany, Michel mbany at cincom.com
Wed Mar 23 15:19:59 CET 2005


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 | ]
		...



-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Dmitry
Dorofeev
Sent: Tuesday, March 22, 2005 11:51 PM
To: The Squeak Enterprise Aubergines Server - general discussion.
Subject: Re: [Seaside] Suggestion: WAFile subclass: #WAImage for image
uploads

Ok, here is my current code.
My plan was to write a Component similar to WADateSelector with nice
interface.
But i feel that image detection methods should go into Seaside WAFile
classes :)


More information about the Seaside mailing list