create fold before read

This commit is contained in:
mm644706215
2024-12-23 22:38:57 +08:00
parent 4a270fa72d
commit 9ee4b90bbb
2 changed files with 5 additions and 1 deletions

View File

@@ -17,6 +17,8 @@ from SIME import *
app = Flask(__name__)
UPLOAD_FOLDER = 'uploads'
if not os.path.exists(UPLOAD_FOLDER):
os.makedirs(UPLOAD_FOLDER)
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
@app.route('/')