[Tutor] CGI File Uploads
Giorgio
anothernetfellow at gmail.com
Sun Feb 28 15:28:33 CET 2010
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 <alan.gauld at btinternet.com>
>
> "Giorgio" <anothernetfellow at gmail.com> 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,
>
>
> --
> Alan Gauld
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
--
--
AnotherNetFellow
Email: anothernetfellow at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100228/7f3b9dac/attachment-0001.html>
More information about the Tutor
mailing list