Re: [Tutor] CGI File Uploads

2010-02-28 Thread ALAN GAULD
> Alan, i don't know how to use it in this case. > > import cgi > form = cgi.FieldStorage() > fileitem = form['file'] > Function dir() lists all functions in a module, i could only use it for "cgi" It will list all the names in any kind of object not just a module. If you type the code abov

Re: [Tutor] CGI File Uploads

2010-02-28 Thread Giorgio
Alan, i don't know how to use it in this case. import cgi form = cgi.FieldStorage() fileitem = form['file'] fileitem.file.read() Function dir() lists all functions in a module, i could only use it for "cgi" O_O. Thankyou 2010/2/28 Alan Gauld > > "Giorgio" wrote > > It's talking from fileite

Re: [Tutor] CGI File Uploads

2010-02-28 Thread Alan Gauld
"Giorgio" wrote It's talking from fileitem attributes like filename and file. Where is the complete list of those attributes or methods? Probably on a web page somewhere but you are probably better using the help() function and dir() to examine an instance from the >>> prompt. HTH, --

[Tutor] CGI File Uploads

2010-02-28 Thread Giorgio
Hi, today i need some help with the python manual. I've found this fileupload example http://webpython.codepoint.net/cgi_file_upload on that site. It's taking from fileitem attributes like filename and file. Where is the complete list of those attributes or methods? Thankyou -- -- AnotherNet