Thanks Nick :)
Hey If I get a chance I'll format these snippets and throw them onto the
wiki in the recipies section. It really isnt that well documented , so
It'll be a handy thing to have in there.
Your all stars :)
Shayne.
--
Shayne O'Neill
http://perth.indymedia.org
I know how hard it is fo
Shayne ONeill wrote:
Thanks a million nick. I would apreciate an example
This is a modified version of code I use...
def bUploadFile(self, sDestinationPath):
'''Save uploaded file to sDestinationPath.
On error return 0. On success return 1.
Form has
'''
if not self.r
On Mar 27, 2004, at 9:54 PM, Shayne ONeill wrote:
rarara=self.request().field("userfile").file.read()
I believe you can do self.request().field('userfile').filename
---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial
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
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 wr
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 w