diff --git a/src/lib/api/documents.ts b/src/lib/api/documents.ts index 6f00e6cea..ac02c0c3f 100644 --- a/src/lib/api/documents.ts +++ b/src/lib/api/documents.ts @@ -100,7 +100,7 @@ export async function create( }); if (isErrorCode(resp.status)) { - console.error(await resp.json()); + console.error(await resp.text()); error(resp.status, resp.statusText); } diff --git a/src/lib/components/forms/DocumentUpload.svelte b/src/lib/components/forms/DocumentUpload.svelte index 90e1f0428..728e7ef15 100644 --- a/src/lib/components/forms/DocumentUpload.svelte +++ b/src/lib/components/forms/DocumentUpload.svelte @@ -18,6 +18,7 @@ import AccessLevel from "../inputs/AccessLevel.svelte"; import Dropzone from "../inputs/Dropzone.svelte"; import FileInput from "../inputs/File.svelte"; + import Language from "../inputs/Language.svelte"; import Select from "../inputs/Select.svelte"; import Switch from "../inputs/Switch.svelte"; import Text from "../inputs/Text.svelte"; @@ -95,7 +96,7 @@ {formatFileType(file.type)} / {filesize(file.size)}