title: How to actually upload a file using Flask WTF FileField
body: <p>In my forms.py file I have I have </p>
  
  <pre><code>    class myForm(Form):
         fileName = FileField()
  </code></pre>
  
  <p>In my views.py file I have</p>
  
  <pre><code>    form = myForm()
      if form.validate_on_submit():
          fileName = secure_filename(form.fileName.file.filename)
  </code></pre>
  
  <p>In my .html file I have </p>
  
  <pre><code>     {% block content %}
       &lt;form action="" method="post" name="simple" enctype="multipart/form-data"&gt;
          &lt;p&gt;
             Upload a file
               {{form.fileName()}}
           &lt;/p&gt;
          &lt;p&gt;&lt;input type="submit" value="Submit"&gt;&lt;/p&gt;
       &lt;/form&gt;
       {% endblock %}
  </code></pre>
  
  <p>and it seems to work when I hit submit but the file is not in any of the project directories.</p>