I am taking the first steps with Flask. I can successfully download the file from the client and return it with the code from here: http://flask.pocoo.org/docs/patterns/fileuploads/
But how to change it (for example, line by line), and then transfer it to the client?
I can get the line with read() after:
if file and allowed_file(file.filename):
and then process it. So, the real question is: how can I serve the output string as a file?
I do not want to save it at all on the hdd server (both the original version and the modified one).
source share