add: ability to manage uploads

This commit is contained in:
trisua 2025-05-11 15:20:15 -04:00
parent 6fabb38c10
commit eb95be0f38
11 changed files with 234 additions and 48 deletions

View file

@ -97,8 +97,10 @@
// create body
const body = new FormData();
for (const file of e.target.file_picker.files) {
body.append(file.name, file);
if (e.target.file_picker) {
for (const file of e.target.file_picker.files) {
body.append(file.name, file);
}
}
body.append(