I followed the basic format of how to upload a file on the following question: Flask/Apache submit button for file upload
And my web page now has an upload and submit button that, I believe, works (i.e. it doesn't go to an error page, but just goes back to the index.html form to submit a file again.
My question is, I assume that a file is being uploaded somewhere. Where is it? Is it on my harddrive (preferably not!) or in the web somewhere? It would be really cool to be able to access that file in the python backend and then call a function on it. (Eventually, I would like to return a file, too, that the backend produces).
Can anyone help point me in the right direction? I guess my questions are:
My code looks like the fixed code in the question I linked to.
The file is at
filename = secure_filename(file.filename) file.save(os.path.join("/tmp/", filename))
which means whatever
filename is, in the
The online location, such as S3 will have a url, which you embed into the html so it downloads directly. eg