On Friday 08 May 2009 01.20:43 Derick Eisenhardt wrote:
> I'd assume you would just want to use an upload widget...either from
> Tosca Widgets or your favorite Javascript library?

I created a form with FileField from tw.  (I've not looked into js libraries 
and all this yet, I'm just trying to get a very basic app.)

As I've said, the template part is not the problem, but I can't easily find 
an example for how to do the controller.

Ideally, I could get information from the request before the whole thing is 
loaded into memory (my example/playground app is a image gallery, so when I 
upload 20 pictures via a upload form, or even just a 100M TIFF because I'm 
crazy, there is no excuse for the web server to grab this much RAM.  Ever.  
(Imagine 50 users doing this at he same time ...)

(... yes, I'm kind of old fashioned ... last time I played with web 
technologies, I wrote it as a Perl cgi program and parsed the requests for 
myself ...)

-- vbi

>
> On May 7, 11:59 am, Adrian von Bidder <[email protected]> wrote:
> > On Sunday 05 April 2009 21.42:32 Daniel Fetchinson wrote:
> > > > Thanks in advance
> > >
> > >http://lmgtfy.com/?q=turbogears+file+upload
> >
> > You know, learning tg while commuting by train (this means not beng
> > online) is a PITA sometimes. :-)
> >
> > [[ I'm online now.  Well, lmgtfy.  How funny. ]]
> >
> > #1: right now, it's difficult for a beginner to sort tg1 and tg2 in
> > Google's search results and judge what is still relevant in the latter.
> >
> > #2: this shouldn't be a case for google.  File uploads are fundamental.
> >  Is there work to convert the file upload tutorial from 1.0 to 2.0?
> >
> > Since I'm just learning both python and tg, it's kind of hard for me to
> > build the proper stuff.  So: pointers for tg2 very welcome.  Quick and
> > dirty for now is ok, since I'm just fooling around, but as I want to
> > learn this properly, file uploads for me immediately beg the question:
> > how to do them without having to load the full file into memory?
> >
> > cheers
> > -- vbi
> >
> >  signature.asc
> > < 1KViewDownload
>
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group. To post to this group, send email to
> [email protected] To unsubscribe from this group, send email to
> [email protected] For more options, visit this
> group at http://groups.google.com/group/turbogears?hl=en
> -~----------~----~----~----~------~----~------~--~---

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to