Where to find the file after uploading via Flask/Python/Heroku? Where to find the file after uploading via Flask/Python/Heroku? flask flask

Where to find the file after uploading via Flask/Python/Heroku?


  1. 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.

  1. 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.

  2. 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>