diff --git a/core/src/stores/store.rs b/core/src/stores/store.rs index f14ae1e01102e..99f08e93e71d0 100644 --- a/core/src/stores/store.rs +++ b/core/src/stores/store.rs @@ -601,7 +601,7 @@ pub const POSTGRES_TABLES: [&'static str; 16] = [ parents TEXT[] NOT NULL, source_url TEXT, document BIGINT, - \"table\" BIGINT, + \"table\" BIGINT, folder BIGINT, FOREIGN KEY(data_source) REFERENCES data_sources(id), FOREIGN KEY(document) REFERENCES data_sources_documents(id), diff --git a/front/components/data_source/DocumentUploadOrEditModal.tsx b/front/components/data_source/DocumentUploadOrEditModal.tsx index e665a712aa528..d8aa7157386e3 100644 --- a/front/components/data_source/DocumentUploadOrEditModal.tsx +++ b/front/components/data_source/DocumentUploadOrEditModal.tsx @@ -147,7 +147,7 @@ export const DocumentUploadOrEditModal = ({ const body = { name: initialId ?? document.name, title: initialId ?? document.name, - mime_type: document.mimeType ?? "application/octet-stream", + mime_type: document.mimeType ?? "text/plain", timestamp: null, parent_id: null, parents: [initialId ?? document.name],