Handling very large exports/backup downloads.

This commit is contained in:
mike12345567 2024-01-31 17:16:51 +00:00
parent c0823d7018
commit 85f7d66a99
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import tar from "tar-fs"
import zlib from "zlib" import zlib from "zlib"
import { promisify } from "util" import { promisify } from "util"
import { join } from "path" import { join } from "path"
import fs from "fs" import fs, { ReadStream } from "fs"
import env from "../environment" import env from "../environment"
import { budibaseTempDir } from "./utils" import { budibaseTempDir } from "./utils"
import { v4 } from "uuid" import { v4 } from "uuid"
@ -184,7 +184,7 @@ export async function upload({
export async function streamUpload( export async function streamUpload(
bucketName: string, bucketName: string,
filename: string, filename: string,
stream: any, stream: ReadStream | ReadableStream,
extra = {} extra = {}
) { ) {
const objectStore = ObjectStore(bucketName) const objectStore = ObjectStore(bucketName)

@ -1 +1 @@
Subproject commit eb9565f568cfef14b336b14eee753119acfdd43b Subproject commit e4dab7e4ccb4a1e2864a35dd2a851ca1a898e6c6