This commit is contained in:
parent
5938f4e063
commit
25a99b4549
6
app.py
6
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
|
||||
|
Loading…
Reference in New Issue
Block a user