title: Within a view function is there a way to return a string along with a response object?
body: <p>The following snippet send a file to the browser.</p>
  
  <pre><code># Prepare selected file for download...
  filename = request.form.get('filename')
  filepath = '/home/nikos/wsgi/static/files/'
  
  return send_from_directory( filepath, filename )
  </code></pre>
  
  <p>What if i want to print some lines before sending the file, as in:</p>
  
  <pre><code># Prepare selected file for download...
  pdata = pdata + '''Your file will be ready for download'''
  padata = pdata + '''it will just atake a moment'''
  
  filename = request.form.get('filename')
  filepath = '/home/nikos/wsgi/static/files/'
  
  return send_from_directory( filepath, filename )
  </code></pre>
  
  <p>if i try to add pdata + reponse like:</p>
  
  <pre><code>return pdata + send_from_directory( filepath, filename )
  </code></pre>
  
  <p>i get an error that return should return a string only not string + response</p>