[Seaside] Uploading large files

Brian Brown rbb at techgame.net
Tue Aug 14 17:55:04 UTC 2007

Avi ported Swazoo to squeak at a camp smalltalk in 2004 I think. On  
SqueakMap there are Swazoo-HTTP, Swazoo-Listener, and Swazoo-Server  
packages, and the Swazoo listener package was specifically created to  
work with Seaside.

That would be where I would start...


On Aug 14, 2007, at 10:54 AM, Janko Mivšek wrote:

> Chad,
> Chad Nantais wrote:
>> Do you know if this would require a major effort (making Swazoo 2.0
>> work on Squeak Seaside) or a small one?
> I would say a small one. Swazoo 1.0 is already connected on VW and  
> this can be an example to follow on Squeak too. And 2.0 has just  
> slightly different API than 1.0.
>> Or does anyone know if there's a way I can hack Kom to make it handle
>> large uploads through input streaming?  Unfortunately, this is one of
>> those instances where I may need to use something other than Seaside
>> :cringe: if I can't get it working.
> Input streaming is not easy to do right, therefore I would rather  
> recommend to go the Swazoo way, because all particularities of MIME  
> parsing directly from the TCP stream to the output one are already  
> solved.
> Best regards
> Janko
>> On 8/14/07, Janko Mivšek <janko.mivsek at eranova.si> wrote:
>>> Hi Chad,
>>> Chad Nantais wrote:
>>>> Sounds good.  However, are you saying that Seaside does not  
>>>> connect to
>>>> this new version of Swazoo yet?
>>> Yes. On VW Swazoo 1.0 is connected, while on Squeak noone is. I
>>> therefore suggest that someone start doing that, maybe on Squeak  
>>> first.
>>> He can count on all my support.
>>> Best regards
>>> Janko
>>>> On 8/14/07, Janko Mivšek <janko.mivsek at eranova.si> wrote:
>>>>> Swazoo 2.0 beta2 web server supports now an input streaming,  
>>>>> that is,
>>>>> streaming of http post data directly to the output stream, a  
>>>>> file for
>>>>> instance. That is what you need for uploading large files.
>>>>> More on: http://www.swazoo.org/streaming.html
>>>>> So, what is still needed is that Seaside connects to that new  
>>>>> Swazoo and
>>>>> you'll have large file uploads supported.
>>>>> Best regards
>>>>> Janko
>>>>> Patrick Collison wrote:
>>>>>> On 14/08/07, Chad Nantais <cnantais at gmail.com> wrote:
>>>>>>> What's the smartest way to handle the uploading of large  
>>>>>>> files (>50mb)
>>>>>>> through Seaside and onto the filesystem without grossly  
>>>>>>> inflating my
>>>>>>> image's memory consumption in the process?
>>>>>> I'm no expert, but I think the short answer is that you can't.
>>>>>> Maybe you could do it by interacting directly with the web- 
>>>>>> server, and
>>>>>> incrementally writing the file to disk?
>>>>>> Patrick
>>>>>>> Thanks in advance,
>>>>>>> Chad
> -- 
> Janko Mivšek
> AIDA/Web
> Smalltalk Web Application Server
> http://www.aidaweb.si
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

More information about the seaside mailing list