title: Issue with file input for Flask WTForms
body: <p>I want to make a form with a file input where you can browse for a file on your computer, and when you submit, the program should be able to read what is in the file. I looked at the flask WTForms documentation as well as</p>
  <pre><code>@app.route(&quot;/&quot;, methods=[&quot;GET&quot;, &quot;POST&quot;])
  def home():
      # Form Stuff
      genome_file = None
      form = GenomeFileForm()
      # Validate form
      if form.validate_on_submit():
          f = form.genome_file.data
          filename = secure_filename(f.filename)
          f.save(os.path.join(
          app.instance_path, 'file', filename
          ))
          return redirect(url_for('index'))
      return render_template(&quot;index.html&quot;, genome_file=genome_file, form=form)
  </code></pre>
  <p>But when I chose a file and clicked submit, it says that no file was selected.
  Tips on how I can fix this?</p>