we can send now?
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2023-07-20 01:28:34 +10:00
parent 5938f4e063
commit 25a99b4549

6
app.py
View File

@ -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