mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
Merge pull request #208 from TriliumNext/bugfix/fix_importing_non_text_files
Unable to import a PDF file
This commit is contained in:
commit
3d423d25f8
@ -49,9 +49,6 @@ function importImage(file: File, parentNote: BNote, taskContext: TaskContext) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function importFile(taskContext: TaskContext, file: File, parentNote: BNote) {
|
function importFile(taskContext: TaskContext, file: File, parentNote: BNote) {
|
||||||
if (typeof file.buffer !== "string") {
|
|
||||||
throw new Error("Invalid file content for text.");
|
|
||||||
}
|
|
||||||
const originalName = file.originalname;
|
const originalName = file.originalname;
|
||||||
|
|
||||||
const {note} = noteService.createNewNote({
|
const {note} = noteService.createNewNote({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user