How To Upload File On Web Server WIth Python cgi Using Web Html Form Without Any Web Framework

How To Upload File On Web Server WIth Python cgi Using Web Html Form Without Any Web Framework



How To Upload File On Web Server WIth Python cgi Using Web Html Form Without Any Web Framework

This script works perfectly on linux machines.
If your server is on a windows machine then you might need to add these lines of code before reading the form

try: # Windows needs stdio set for binary mode.
import msvcrt
msvcrt.setmode (0, os.O_BINARY) # stdin = 0
msvcrt.setmode (1, os.O_BINARY) # stdout = 1
except ImportError:
pass

How to Run Python Scripts On Apache Web Server Localhost Xampp Without Any Framework




Get In Touch

Name :
Sarmad Akram
Location :
Milano | ITALY
Email :
sarmadikram4@gmail.com

Copy Right © By Sarmad Akram 2018 | ALL RIGHTS RESERVED