enh: iframe support
This commit is contained in:
1 parent
7b64b40270
commit
d5b76b5ed2
3 files changed
+27
-3
No files matched your search
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user