docker upload directories fixes

This commit is contained in:
2025-06-06 10:12:46 +02:00
parent e4238d9fdb
commit d619283d09
16 changed files with 62 additions and 23 deletions

View File

@@ -332,7 +332,7 @@ def init_routes(main_bp):
is_admin=current_user.is_admin
)
UPLOAD_FOLDER = os.path.join(os.getcwd(), 'uploads', 'profile_pics')
UPLOAD_FOLDER = '/app/uploads/profile_pics'
if not os.path.exists(UPLOAD_FOLDER):
os.makedirs(UPLOAD_FOLDER)