Some more stuff sort of working, started slideshow stuff

This commit is contained in:
2025-11-09 21:28:10 -05:00
parent d332aca22e
commit 91a973dde2
9 changed files with 175 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
from flask import Blueprint, request, render_template, jsonify, current_app
from utilities.tools import get_db
from werkzeug.utils import secure_filename
import os
@@ -35,6 +36,13 @@ def upload():
filename = secure_filename(file.filename)
file.save(os.path.join(folder_path, filename))
get_db().insert(
"media",
["media_name", "media_uri"],
[request.form["name"], os.path.join(folder_path, filename)]
)
return jsonify({
'status': 'SUCCESS'
}), 200