upload file with cgi

Sim & Golda Zacks simngolda at voyager.net
Sun Jul 18 01:23:49 EDT 1999


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.

Sim





More information about the Python-list mailing list