title: Flask does not list outputs of multiple files
body: <p>I am using Flask to render some analysis based on taking image as an input using Flask reuploaded and werkzeug. Though the input accepts multiple images, the output is rendered of only one image instead of all the images that were uploaded.
  There is no error message that I am receiving.</p>
  <p><strong>HTML code:</strong></p>
  <pre><code>&lt;form method=&quot;POST&quot; action=&quot;&quot; enctype=&quot;multipart/form-data&quot;&gt;&lt;p&gt;
                  &lt;input type=&quot;file&quot; name=&quot;file&quot; multiple
                         accept=&quot;image/x-png,image/gif,image/jpeg&quot;&gt;
                  &lt;input type=&quot;submit&quot; value=&quot;Upload&quot;&gt;
  </code></pre>
  <p><strong>Post request</strong></p>
  <pre><code>@app.route('/', methods=['POST'])
  def upload_image():
      if request.method == 'POST':
          # checks whether or not the post request has the file part
          if 'file' not in request.files:
              flash('No file part')
              return redirect(request.url)
  
          file = request.files['file']
  
          # if user does not select file, browser also
          # submit a empty part without filename
          if file.filename == '':
              flash('No file selected for uploading')
              return redirect(request.url)
          files = request.files.getlist('files[]')
  
          if file and allowed_file(file.filename):
              filename = secure_filename(file.filename)
              file.save(os.path.join(os.getcwd() +
                                     UPLOAD_INPUT_IMAGES_FOLDER, file.filename))
  
              flash('File successfully uploaded')
  
              # calls the ocr_processing function to perform text extraction
              extracted_text = ocr_processing(file)
              print(extracted_text)
              match = extracted_text.lower()
              df = pd.read_csv(&quot;/Users/ri/Desktop/DPL/DPL.csv&quot;)
  
              for row in df.Pattern_String:
                  result = ratio(row, match)
                  print(result)
                  if result &gt;= 10:
  
                  else:
                      return render_template('uploads/results.html',
                                             msg='Processed successfully!',
                                             match=match,
                                             img_src=UPLOAD_INPUT_IMAGES_FOLDER + file.filename)
  
  
      else:
          flash('Allowed file types are txt, pdf, png, jpg, jpeg, gif')
          return redirect(request.url)
  </code></pre>