mirror of
https://github.com/ilri/csv-metadata-quality-web.git
synced 2024-11-29 18:08:23 +01:00
main.py: Add note about using /tmp
I originally wanted to use an "uploads" directory or something, but it seems we can only write to /tmp on Google App Engine. They really want you to buy storage or database services! This is memory mapped so it disappears when you re-deploy.
This commit is contained in:
parent
bc256b242d
commit
adc2d06094
2
main.py
2
main.py
@ -18,6 +18,8 @@ from werkzeug.utils import secure_filename
|
||||
app = Flask(__name__)
|
||||
app.config["MAX_CONTENT_LENGTH"] = 1024 * 1024
|
||||
app.config["UPLOAD_EXTENSIONS"] = [".csv"]
|
||||
# the only place we can write to on Google App Engine is /tmp
|
||||
# see: https://cloud.google.com/appengine/docs/standard/python3/using-temp-files
|
||||
app.config["UPLOAD_PATH"] = "/tmp"
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user