In my Python CGI script, how do I save to disk a file uploaded via POST request of data entered by the user in a form?
问题 The client has a simple form that takes a text and a file: <form name="add_show" id="add_show" action="" method="GET"> <label class="text-info">Show Name:</label> <input type="text" id="show_name" name="show_name" placeholder="My Show Name" required><br><br> <label class="text-info">Show's File (JSON):</label> <input type="file" id="file" name="file" required><br><br> <p><input class="btn btn-danger btn-small" name="button2" value="Add the Show!" onClick="addFullShow(this.form)"></p> </form>