enh: iframe support

This commit is contained in:
Timothy J. Baek
2024-06-19 16:51:29 -07:00
parent 7b64b40270
commit d5b76b5ed2
3 changed files with 27 additions and 3 deletions

View File

@@ -138,7 +138,7 @@
processFileItem(fileItem);
} else {
toast.error(
$i18n.t(`Unknown File Type '{{file_type}}', but accepting and treating as plain text`, {
$i18n.t(`Unknown file type '{{file_type}}'. Proceeding with the file upload anyway.`, {
file_type: file['type']
})
);
@@ -158,8 +158,11 @@
}
} catch (e) {
// Remove the failed doc from the files array
files = files.filter((f) => f.id !== fileItem.id);
// files = files.filter((f) => f.id !== fileItem.id);
toast.error(e);
fileItem.status = 'processed';
files = files;
}
};
@@ -214,7 +217,7 @@
}
} catch (e) {
// Remove the failed doc from the files array
// files = files.filter((f) => f.name !== url);
files = files.filter((f) => f.name !== url);
toast.error(e);
}
};