This commit is contained in:
parent
8415845488
commit
75958f9d9a
12
app.py
12
app.py
@ -134,6 +134,18 @@ def post_a_post(post_key):
|
||||
def post_to_post(post_key):
|
||||
|
||||
|
||||
uploaded_file = request.files["file"]
|
||||
|
||||
if uploaded_file:
|
||||
minioClient = Minio( "static.guaranteedstruggle.host" )
|
||||
bucket_name = "thread-pics"
|
||||
size = os.fstat(uploaded_file.fileno()).st_size
|
||||
|
||||
minioClient.put_object(
|
||||
bucket_name, uploaded_file.filename, uploaded_file, size
|
||||
)
|
||||
|
||||
|
||||
postos = db.collection('posts')
|
||||
|
||||
data = request.form['send_this_text']
|
||||
|
Loading…
Reference in New Issue
Block a user