Where to find the file after uploading via Flask/Python/Heroku?
The file is at
filename = secure_filename(file.filename)file.save(os.path.join("/tmp/", filename))
which means whatever filename
is, in the /tmp/
directory.
No. It should be in
/tmp/
filename. Although I don't think this is a valid location for heroku. I suspect you have to upload content to someplace else, like Amazon S3 or direct via node.The online location, such as S3 will have a url, which you embed into the html so it downloads directly. eg
http://mybucket.s3.amazonaws.com/<filename>