diff --git a/app.py b/app.py index c73ea13..3e1577b 100644 --- a/app.py +++ b/app.py @@ -5,7 +5,7 @@ from todo import todos from threads import threads_lists from threads_with_posts import open_threads from arango import ArangoClient -from minio import minioClient +from minio import Minio import socket, os @@ -182,6 +182,10 @@ def post_to_post(post_key): def upload_file(): if request.method == "POST": uploaded_file = request.files["file"] + + minioClient = Minio( + "static.guaranteedstruggle.host", + ) if uploaded_file: bucket_name = "thread-pics" size = os.fstat(uploaded_file.fileno()).st_size