title: File Sharing Site in Python
body: <p>I wanted to design a simple site where one person can upload a file, and pass off the random webaddress to someone, who can then download it.</p>
  
  <p>At this point, I have a webpage where someone can successfully upload a file which gets stored under /files/ on my webserver.</p>
  
  <p>The python script also generates a unique, random 5 letter code that gets stored in a database identifying the file</p>
  
  <p>I have another page called retrieve, where a person should go, put in the 5 letter code, and it should pop up a filebox asking where to save the file.</p>
  
  <p>My Problem is that: 1) How do I retrieve the file for download? At this point my retrieve script, takes the code, gets the location of the file on my server, but how do I get the brower to start downloading?</p>
  
  <p>2)How do I stop people from directly going to the file? Should I change permissions on the file?</p>