mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
increase single file upload size limit
This commit is contained in:
@@ -247,7 +247,7 @@ function ImportFormatSelection({ spaceId, onClose }: ImportFormatSelection) {
|
||||
}, 3000);
|
||||
}, [fileTaskId]);
|
||||
|
||||
const maxSingleFileSize = bytes("20mb");
|
||||
const maxSingleFileSize = bytes("30mb");
|
||||
|
||||
const handleFileUpload = async (selectedFiles: File[]) => {
|
||||
if (!selectedFiles) {
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
"cookie": "^1.1.1",
|
||||
"fast-bm25": "0.0.5",
|
||||
"fastify-ip": "^2.0.0",
|
||||
"firecrawl-pdf-inspector": "https://github.com/Philipinho/pdf-inspector/releases/download/v0.9.2/pdf-inspector-prebuilt.tar.gz",
|
||||
"firecrawl-pdf-inspector": "https://github.com/Philipinho/pdf-inspector/releases/download/v1.9.1/pdf-inspector-prebuilt.tar.gz",
|
||||
"fs-extra": "^11.3.4",
|
||||
"happy-dom": "20.8.9",
|
||||
"ioredis": "^5.10.1",
|
||||
|
||||
@@ -53,7 +53,7 @@ export class ImportController {
|
||||
) {
|
||||
const validFileExtensions = ['.md', '.html', '.docx', '.pdf'];
|
||||
|
||||
const maxFileSize = bytes('20mb');
|
||||
const maxFileSize = bytes('30mb');
|
||||
|
||||
let file = null;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user