Skip to content

Commit b9544fb

Browse files
committed
Customize upload directory.
1 parent f3c0e87 commit b9544fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from flask import Flask, request
55

66
app = Flask(__name__)
7-
app.config["UPLOAD_FOLDER"] = "/usr/share/nginx/html"
7+
app.config["UPLOAD_FOLDER"] = os.getenv("UPLOAD_FOLDER", "/usr/share/nginx/html")
88

99

1010
@app.route("/")

0 commit comments

Comments
 (0)