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
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