title: How to get form POST input in Tornado?
body: <p>I amd new to Tornado framework and trying to make a simple form to upload images:</p>
  
  <pre><code>&lt;form method="post" action="/uploads/{{uid}}/" enctype="multipart/form-data"  &gt;
      &lt;input type="file" name="file1" /&gt; &lt;br /&gt;
    Image info: &lt;input type="text" name="alt" /&gt; &lt;br /&gt;
  &lt;input class="button" type="submit" value="Upload" class="button" /&gt; 
  &lt;/form&gt;
  </code></pre>
  
  <p>I can successfully receive the Posted file using:</p>
  
  <pre><code>if 'file1' in self.request.files:
              if self.request.files['imgfile'][0]: 
                      file1 = self.request.files['imgfile'][0] 
  </code></pre>
  
  <p>However I'm unable to receive the <code>alt</code> input. I tried <code>alt = self.request.alt</code> but I get this error</p>
  
  <pre><code>AttributeError: 'HTTPServerRequest' object has no attribute 'alt'
  </code></pre>
  
  <p>and when I use  <code>alt = self.request.files['alt']</code>, I get:</p>
  
  <pre><code>  KeyError: 'alt'
  </code></pre>
  
  <p>I ran out of ideas so appreciate your help.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I found that this works:</p>
  
  <pre><code>alt = self.get_argument('alt')
  </code></pre>
  
  <p>But still open for better solutions.</p>