title: Creation of a simple HTML file upload page
body: <p>First, I don't need any functions more than upload a file. No progress bar, no file type, or size check, no multiple files.</p>
  
  <p>What I want is the most simple HTML webpage to handle the upload and save the file with the name I specified.</p>
  
  <p>I tried to use this:</p>
  
  <pre><code>&lt;form action="../cgi-bin/upload.py" method="post" enctype="multipart/form-data"&gt;
  &lt;input type="file" name="upload" /&gt;
  &lt;input type="submit" /&gt;&lt;/form&gt;
  </code></pre>
  
  <p>In <code>upload.py</code>:</p>
  
  <pre><code>#!/usr/bin/python
  
  import os
  import commands
  import cgi, cgitb
  
  cgitb.enable()
  print "Content-Type: text/html"
  print
  print 'start!'
  form = cgi.FieldStorage()
  filedata = form['upload']
  </code></pre>
  
  <p>But I don't know how to save this in file, like "Beautiful.mp3".  </p>
  
  <p>Can any body help?</p>
  
  <p>Though, really, I don't want to use any scripts. I just want the most basic html pages. Python scripts will only exist when there must be some CGI handlers. Flash is not preferred.</p>