This commit is contained in:
Timothy Jaeryang Baek
2025-10-26 22:20:57 -07:00
parent 46a3f7de5e
commit f47214314b
3 changed files with 43 additions and 23 deletions
@@ -18,7 +18,7 @@
let loaded = false;
let filesInputElement = null;
let inputFiles = [];
let inputFiles = null;
const uploadFileHandler = async (file, fullContext: boolean = false) => {
if ($user?.role !== 'admin' && !($user?.permissions?.chat?.file_upload ?? true)) {