mirror of
https://github.com/docmost/docmost.git
synced 2026-05-15 05:04:06 +08:00
fix: attachment bugs in safari(#1908)
* use widely available arrayBuffer * fix stream fails in safari * fix hasFocus bug * fix safari upload bug * feat: add HTTP range request support for file serving
This commit is contained in:
@@ -11,6 +11,11 @@ export interface StorageDriver {
|
||||
|
||||
readStream(filePath: string): Promise<Readable>;
|
||||
|
||||
readRangeStream(
|
||||
filePath: string,
|
||||
range: { start: number; end: number },
|
||||
): Promise<Readable>;
|
||||
|
||||
exists(filePath: string): Promise<boolean>;
|
||||
|
||||
getUrl(filePath: string): string;
|
||||
|
||||
Reference in New Issue
Block a user