File Uploads -- Windows Server

"Martin v. Löwis" martin at v.loewis.de
Mon Mar 28 07:03:06 EST 2005


Doug Helm wrote:
> I'm not getting any error.  I submit a multi-part form to save a file
> attachment to disk, and the post just hangs.

You really should look into debugging this. Are you sure your script
is called? To be sure, make the script create a file in c:\tmp.
Is the file being created?

Next, you said you want to know what the command line is. Print sys.argv
to the file. While you are at it, also print os.environ to the file.

Add a print statement after every chunk of code in your CGI script.
Maybe you are getting an exception that is not logged anywhere?

In short, you really have to find out yourself what is going on in your
script. Very few people use IIS (most use Apache instead), so you are
pretty much on your own.

Regards,
Martin



More information about the Python-list mailing list