Ok I tried the

rarara=self.request().field("userfile").file.read()

trick.

It gets the file into a var I can dump to a file or whatever.

I still need to find out what the files name was tho. Unfortunately the
cgi documentation isnt giving me any joy here. At best perhaps I can get
the field out (assuming field("userfile") really is a FieldStorage type,
but I still need to know the name of the damn filed.

I cant seem to figure out how to find this out?

--
Shayne O'Neill
http://perth.indymedia.org
I know how hard it is for you to put food on your family."
 ----George W. Bush

On Sun, 28 Mar 2004, Shayne ONeill wrote:

>
> Thanks a million nick. I would apreciate an example....
>
> (Or if I work it out I'll post one).
>
> Should it perhaps be put up on the wiki?
>
> --
> Shayne O'Neill
> http://perth.indymedia.org
> I know how hard it is for you to put food on your family."
>  ----George W. Bush
>
> On Sat, 27 Mar 2004, Nick Murtagh wrote:
>
> > Shayne ONeill wrote:
> > > I get the whole filerarara:FieldStorage('userfile','filename','assorted
> > > cruft') returned.
> > >
> > > I just dont know how to get to whats inside those wee lil' brackets.
> >
> > The FieldStorage thing is documented here:
> >
> >    http://www.python.org/doc/current/lib/node403.html
> >
> > I can probably post working code on Monday...
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: IBM Linux Tutorials
> > Free Linux tutorial presented by Daniel Robbins, President and CEO of
> > GenToo technologies. Learn everything from fundamentals to system
> > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> > _______________________________________________
> > Webware-discuss mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/webware-discuss
> >
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to