title: Uploading multiple files with Flask App Builder
body: <p>Creating a simple front end with Flask where I can select multiple files and runs some calculations on them. </p>
  
  <p>Currently I am using the code below, but it is only good for 1 file, <code>#do something</code> is where the conversion happens;</p>
  
  <pre><code>class Sources(SimpleFormView):
      form = MyForm
      form_title = 'This is my first form view'
      message = 'My form submitted'
  
      def form_get(self, form):
          form.field1.data = 'This was prefilled'
  
      def form_post(self, form):
          x = #do something
          return self.render_template('test.html', table = x ,name='TEST')
  </code></pre>
  
  <p>The form basically lets me type in the path as shown below:</p>
  
  <pre><code>from wtforms import Form, StringField
  from wtforms.validators import DataRequired
  from flask.ext.appbuilder.fieldwidgets import BS3TextFieldWidget
  from flask.ext.appbuilder.forms import DynamicForm
  
  
  class MyForm(DynamicForm):
      Path = StringField(('Field1'),
          description=('Your field number one!'),
          validators = [DataRequired()], widget=BS3TextFieldWidget())
  </code></pre>
  
  <p>I am trying to select multiple files from my local machine and then process them together. Much like how we attach files using Gmail;</p>
  
  <ol>
  <li>Option to select file path</li>
  <li>Open file browser</li>
  <li>Store file path</li>
  <li>Process 1 and 3 repeats till hit threshold or submitted.</li>
  </ol>
  
  <p>I am currently using Flask App Builder to get my front end right. </p>