title: Upload two different file in two different fields
body: <p>I'm using flask to develop webapp and I have two different files to upload to two different locations and as far as I search through the internet I only find explanation to upload one or multiple together in one file  field and it works fine.</p>
  
  <p><a href="https://i.stack.imgur.com/fnIkM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fnIkM.png" alt="enter image description here"></a> </p>
  
  <p>here is the code i used to upload one file: </p>
  
  <pre><code>app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
  
  def allowed_file(filename):
      return '.' in filename and \
             filename.rsplit('.', 1)[1] in ALLOWED_EXTENSIONS
  
  @app.route("/", methods=['GET', 'POST'])
  def index():
      if request.method == 'POST':
          file = request.files['file']
          if file &gt; 0:
              filename = secure_filename(file.filename)
              file.save(os.path.join(UPLOAD_FOLDER , filename))
              return redirect(url_for('index'))
  </code></pre>
  
  <p>can someone help me with that</p>