This commit is contained in:
6
app.py
6
app.py
@@ -180,13 +180,13 @@ def post_to_post(post_key):
|
||||
|
||||
@app.route("/send_dudes", methods=["POST"])
|
||||
def upload_file():
|
||||
|
||||
#### TODO вынести в обычный метод отправки
|
||||
if request.method == "POST":
|
||||
uploaded_file = request.files["file"]
|
||||
|
||||
minioClient = Minio(
|
||||
"static.guaranteedstruggle.host",
|
||||
)
|
||||
if uploaded_file:
|
||||
minioClient = Minio( "static.guaranteedstruggle.host" )
|
||||
bucket_name = "thread-pics"
|
||||
size = os.fstat(uploaded_file.fileno()).st_size
|
||||
|
||||
|
||||
Reference in New Issue
Block a user