upload file with cgi
Michael P. Reilly
arcege at shore.net
Sun Jul 18 08:45:52 EDT 1999
More information about the Python-list mailing list
Sun Jul 18 08:45:52 EDT 1999
- Previous message (by thread): upload file with cgi
- Next message (by thread): upload file with cgi
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Sim & Golda Zacks <simngolda at voyager.net> wrote: : I am uploading a file using the cgi module and I can not figure out how : to get the name of the file. : The code I am using is : form=cgi.FieldStorage() : pic=form["picture"] : Now when I print pic it gives me the name of the File and the actual : file. : When I get pic.value it is the actual picture. : pic.key doesn't give me anything and I have absolutely no clue how to : get the filename. : Please help. There should be a "filename" attribute along with the "file" object. print 'You gave me the file:', pic.filename -Arcege
- Previous message (by thread): upload file with cgi
- Next message (by thread): upload file with cgi
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list