Add range header support to files.get (#6950)

This commit is contained in:
Tom Moor
2024-05-28 08:12:25 -04:00
committed by GitHub
parent f58f309321
commit 50bbe05334
4 changed files with 52 additions and 6 deletions

View File

@@ -32,7 +32,8 @@ export default abstract class BaseStorage {
* @param key The path to the file
*/
public abstract getFileStream(
key: string
key: string,
range?: { start?: number; end?: number }
): Promise<NodeJS.ReadableStream | null>;
/**