title: upload files using a number associated with each file instead of the name of the file
body: <p>Im showing the list of current files in a directory.</p>
  
  <p>And for each file Im showing a number associated, and then I want to ask user to digit 3 file, but not with file name, I want using the associated number.</p>
  
  <p>So Im storing each filename with number associated in a dictonary.</p>
  
  <p>And now Im trying to upload using the number associated to each file, but Im not having sucess doing this.</p>
  
  <p>Someone already did something like this and can give me a help?</p>
  
  <pre><code>import os 
  
  def upload(file_name_number): 
  
      filename = raw_input(file_name_number)
  
      if(os.path.exists(filename)):
          key.set_contents_from_filename(filename)
      else:
          print "The selected number does not exist in current directory."
          upload(file_name_number)
      return filename    
  
  def create():
  
      showListAndSaveDict()
  
      firstFile  = upload("Select the number of first file:")
      secondFile = upload("Select the number of second file:")
      thirdFile  = upload("Select the number of third file:") 
  
  def showListAndSaveDict():
      files = [f for f in os.listdir('.') if os.path.isfile(f)]
      files_dict = {}
      i=0
      for f in files:
          i = i+1
          print (str(i) + " - " + f)  
          files_dict[i] = f
      return files_dict
  
  create()
  </code></pre>