the url doesn' make sensewhen we visit this html filethe page shown in figure - is delivered pressing its browse button opens standard file-selection dialogwhile upload sends the file figure - file upload selection page on the client sidewhen we press this page' upload buttonthe browser opens and reads the selected file and packages its contents with the rest of the form' input fields (if anywhen this information reaches the serverthe python script named in the form action tag is run as alwaysas listed in example - example - pp \internet\web\cgi-bin\putfile py #!/usr/bin/python ""#################################################################################extract file uploaded by http from web browserusers visit putfile html to get the upload form pagewhich then triggers this script on serverthis is very powerfuland very dangerousyou will usually want to check the filenameetcthis may only work if file or dir is writablea unix 'chmod uploadsmay sufficefile pathnames may arrive in client' path formathandle herecaveatcould open output file in text mode to wite receiving platform' line ends since file content always str from the cgi modulebut this is temporary solution anyhow--the cgi module doesn' handle binary file uploads in at all#################################################################################""import cgiossys import posixpathntpathmacpath debugmode false for client paths true=print form info transferring files to clients and servers