From a068a794ddccf9cd1e7db536512d517b9492837e Mon Sep 17 00:00:00 2001 From: MaheshtheDev <38828053+MaheshtheDev@users.noreply.github.com> Date: Wed, 10 Jun 2026 06:09:20 +0000 Subject: [PATCH 1/3] Support HTML file uploads in Nova (#1076) Adds .html/.htm extensions and text/html MIME to the upload accept list and validation. The API already ingests HTML files; the uploader was rejecting them client-side. --- apps/web/components/add-document/file.tsx | 7 +- .../document-cards/file-preview.tsx | 66 +++++++++++-------- apps/web/components/document-icon.tsx | 65 +++++++++++++++++- 3 files changed, 106 insertions(+), 32 deletions(-) diff --git a/apps/web/components/add-document/file.tsx b/apps/web/components/add-document/file.tsx index a766bcf05..aa9388e70 100644 --- a/apps/web/components/add-document/file.tsx +++ b/apps/web/components/add-document/file.tsx @@ -8,7 +8,7 @@ import { useHotkeys } from "react-hotkeys-hook" import { toast } from "sonner" export const FILE_ACCEPT = - "image/*,.pdf,.doc,.docx,.xls,.xlsx,.csv,.txt,.md,.mdx,.json,text/markdown,application/json" + "image/*,.pdf,.doc,.docx,.xls,.xlsx,.csv,.txt,.md,.mdx,.json,.html,.htm,text/markdown,application/json,text/html" export type FileQueueItemStatus = "pending" | "uploading" | "success" | "error" @@ -47,11 +47,14 @@ function isAcceptedFile(file: File): boolean { ".md", ".mdx", ".json", + ".html", + ".htm", ]) if (allowedExt.has(ext)) return true if (file.type.startsWith("image/")) return true if (file.type === "text/markdown") return true if (file.type === "application/json") return true + if (file.type === "text/html") return true return false } @@ -211,7 +214,7 @@ export function FileContent({

Upload files

- Images, PDF, documents, sheets, markdown + Images, PDF, documents, sheets, markdown, HTML